Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

go build

Install it

go install

Creating a Module

Create a go.mod file

Code Block
titlego.mod
module mymodule
go 1.18


Add Libraries

go get github.com/qopher/go-torrentapi


Commands

CommandDescription
go run <src.go>Run some code
go buildCompile the code. Outputs to local folder. Executable has folder as name.
go installCompiles and places the output in workspace/bin
go env GOPATHOutputs the default workspace folder

...