Forrest logo
back to context overview

go

List of commands for go:

  • go:ai:b64b7 Install gosec, a security tool for Go programming language
    $ go get -u github.com/securego/gosec/cmd/gosec
    try on your machine
    explain this command
  • go:tldr:a7f28 go: Compile a source file into a named executable.
    $ go build -o ${executable} ${file}.go
    try on your machine
    explain this command
  • go:tldr:cec36 go: Compile the package present in the current directory.
    $ go build
    try on your machine
    explain this command
  • go:tldr:d3219 go: Compile and run a source file (it has to contain a `main` package).
    $ go run ${file}.go
    try on your machine
    explain this command
back to context overview