You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for showing how to name the directories. I also need to know how to:
Add library code
Import library code into a binary
Build a binary
Perform offline builds
How about adding some example code? Ideally, this would be a complete buildable repository with short .go files and Makefile that show best practices for building, running tests, linting, etc.
It would be great to incorporate the solution for golang/go#37554 , to save folks from having to understand 27 pages of technical discussion.
These things are not at all obvious. For example, the obvious command go build ... does not produce any binaries. Running go build -v ... produces no output and go build -vvv ... doesn't work. And if I manage to produce a binary with go build cmd/example/example.go, the corresponding go clean does not delete it. Please put the appropriate commands in Makefile.
Here's example code to get started:
// go.mod// Allow others to import this module into their projects or use `go install`:modulegithub.com/org1/example// For private code://module _/examplego1.14
Thanks for showing how to name the directories. I also need to know how to:
How about adding some example code? Ideally, this would be a complete buildable repository with short
.go
files andMakefile
that show best practices for building, running tests, linting, etc.It would be great to incorporate the solution for golang/go#37554 , to save folks from having to understand 27 pages of technical discussion.
These things are not at all obvious. For example, the obvious command
go build ...
does not produce any binaries. Runninggo build -v ...
produces no output andgo build -vvv ...
doesn't work. And if I manage to produce a binary withgo build cmd/example/example.go
, the correspondinggo clean
does not delete it. Please put the appropriate commands inMakefile
.Here's example code to get started:
Edit: Added alternative
_/example
module name. Rango clean -cache
and now build command shows output.The text was updated successfully, but these errors were encountered: