Difference between revisions of "Go build"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
[[RUN]] [[CGO_ENABLED]]=0 go build -o /go/bin/app | [[RUN]] [[CGO_ENABLED]]=0 go build -o /go/bin/app | ||
+ | |||
+ | [[go build -tags]] | ||
== See also == | == See also == | ||
+ | * {{go build}} | ||
* {{go}} | * {{go}} | ||
* {{build}} | * {{build}} | ||
[[Category:Go]] | [[Category:Go]] |
Latest revision as of 11:31, 5 March 2024
go build
go build your_file.go # command-line-arguments ./your_file.go:7:1: syntax error: non-declaration statement outside function body
RUN CGO_ENABLED=0 go build -o /go/bin/app
go build -tags
See also[edit]
go build
- Go, Gorutine:
go [ mod
|list
|fmt
,for
|build
|get
|version
|env | install | test
]go help
, Go template, Echo go web framework, Go packages, Blank identifier - Build, build automation,
make, cmake
,docker build
,conan build, gradle build
, kaniko, AWS CodeBuild, Bazel, Google Cloud Build, meson, Pants, Scons, Buck2,earthly
Advertising: