https://youtu.be/j_vPcbMca5Y?rel=0

Steps to install dependency using Go

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

import "github.com/fatih/color"

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