Codingame template for golang to allow multi-file local repo and non-std libraries
-
Install bundle tool
go get -u golang.org/x/tools/...
-
Customize go generate directive
// Open main.go and change below line // go:generate bundle -o ./../out/bundle.go -prefix "" .
-
cd src
-
go generate
-
Use codingame chrome extension to connect generated single file to browser IDE
Take go-linq as example
go install github.com/ahmetalpbalkan/go-linq
cd $GOPATH/github.com/ahmetalpbalkan/go-linq
bundle -o ./../pkg_go_linq.go -pkg main -prefix .