Skip to content

bioform/go-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.

Project structure

https://github.com/golang-standards/project-layout

Run gameone

go run cmd/gameone/gameone.go

Build

GOOS=linux GOARCH=amd64 go build -ldflags="-w -s -X 'main.Version=v2.0.0' -X 'github.com/bioform/go-test/build.User=$(id -u -n)' -X 'github.com/bioform/go-test/build.Time=$(LANG=en_us_88591; date)'" .

Build game

GOOS=windows GOARCH=amd64 go build -ldflags="-w -s -X 'main.Version=v2.0.0' -X 'github.com/bioform/go-test/internal/gameone/os.Pointer=>' -X 'github.com/bioform/go-test/internal/gameone/os.Checkmark=√'" cmd/gameone/gameone.go
-s
	Omit the symbol table and debug information.
-w
	Omit the DWARF symbol table.

Docker build

docker build -t bioform/go-test:first .

Get symbols from builded file

if -s option wasn't provided during build

go tool nm ./go-test | grep go-test

Run

 docker run -it --rm bioform/go-test:first

Display docker images

 docker ps -a --format "{{.ID}} {{.Command}}" --no-trunc

Remove all STOPPED containers

 docker rm $(docker ps -a -q)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published