Go
Detection
Go applications are detected when the application contains at least one of the following:
- A
go.mod
at the root of the project - A
Godeps/Godeps.json
file which identifies the application as being managed bygodep
- A
vendor/vendor.json
file which identifies the application as being managed bygovendor
- A
src
directory with subdirectories contains one or more.go
files which identifies the application as being managed bygb
.
Runtime
By default, the Go version used to build your application is fetched from your dependency manager metadata file.
Depending on the dependency manager you use, you can specify the Go version by either updating the appropriate metadata file or setting the $GOVERSION
environment variable.