Skip to content

torreswoo/template-go-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang basic project

spec

build & run

  • test command
$ GOOS=darwin GOARCH=amd64 go build -o bin/hello -v cmd/hello/main.go
$ ./bin/hello
  • install
$ make install
  • check : format, style, lint
$ make check
  • build
$ make build
  • run
$ make run

Makefile

  • usage go command : go build, go install, dep, gometalinter, ginkgo, rm, gofmt
  • make command : all, lint, install, build, build-all, run, run-cont, clean, test, test-cont
  • go build options : -ldflags, -i, -o, -v
    • -i : flag installs the packages that are dependencies of the target.
    • -v : print the names of packages as they are compiled.
    • -ldflags : arguments to pass on each go tool link invocation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published