Steps to install dependency using Go

  1. Create a project from a GO template.
  2. Open a terminal and type go mod init to init your Go project.
  3. Install dependency using the proposed search menu or install it later using the command:
go get
  1. Update your code to use autoloader:
package main

import ""

func main() {
  color.Red("Prints text in red.")
  1. Tap the Run button and check out the result, or run it manually from a console with the following command:
go run app.go
Powered by Fruition