Skip to content

Codingame template for golang to allow multi-file local repo and non-std libraries

License

Notifications You must be signed in to change notification settings

hanabi1224/codingame-go-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codingame-go-template

Codingame template for golang to allow multi-file local repo and non-std libraries

How to use

  1. Install bundle tool go get -u golang.org/x/tools/...

  2. Customize go generate directive

    // Open main.go and change below line
    // go:generate bundle -o ./../out/bundle.go -prefix "" .
  3. cd src

  4. go generate

  5. Use codingame chrome extension to connect generated single file to browser IDE

How to bundle other libraries

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  .

About

Codingame template for golang to allow multi-file local repo and non-std libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages