An open API service indexing awesome lists of open source software.

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

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 .
```