To import a package in go, use the import
keyword followed by the package path. For example, to import the fmt
package:
main.go13 chars2 lines
You can also import multiple packages by separating them with commas:
main.go37 chars5 lines
It's common practice to import packages in the format import "github.com/username/package"
to import packages from external sources.
gistlibby LogSnag