Difference between revisions of "Go build"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 6: | Line 6: | ||
# command-line-arguments | # command-line-arguments | ||
./your_file.go:7:1: syntax error: [[non-declaration statement outside function body]] | ./your_file.go:7:1: syntax error: [[non-declaration statement outside function body]] | ||
+ | |||
+ | |||
+ | [[RUN]] [[CGO_ENABLED]]=0 go build -o /go/bin/app | ||
Revision as of 11:45, 26 December 2022
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
See also
- 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: