Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Go module usage

  1. Initialize your project
$ go mod init "<module>"

For example,

$ go mod init ""
  1. Add dependencies
  1. Verify
$ go mod verify
  1. Archive and create package as usual
$ zip -r .
    adding: go.mod (deflated 26%)
    adding: go.sum (deflated 1%)
    adding: (deflated 37%)
    adding: main.go (deflated 30%)
$ fission pkg create --env go --src
You can’t perform that action at this time.