https://github.com/hanabi1224/codingame-go-template
Codingame template for golang to allow multi-file local repo and non-std libraries
https://github.com/hanabi1224/codingame-go-template
codingame codingame-template
Last synced: about 1 year ago
JSON representation
Codingame template for golang to allow multi-file local repo and non-std libraries
- Host: GitHub
- URL: https://github.com/hanabi1224/codingame-go-template
- Owner: hanabi1224
- License: mit
- Created: 2021-02-07T22:18:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T22:56:47.000Z (over 5 years ago)
- Last Synced: 2025-02-05T21:37:13.071Z (over 1 year ago)
- Topics: codingame, codingame-template
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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/...```
1. Customize go generate directive
```go
// Open main.go and change below line
// go:generate bundle -o ./../out/bundle.go -prefix "" .
```
1. ```cd src```
2. ```go generate```
3. 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 .
```