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

README.md

Go module usage

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

For example,

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