Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdxjohnny/go-starter
A starter go repo to start creating an application from
https://github.com/pdxjohnny/go-starter
Last synced: about 1 month ago
JSON representation
A starter go repo to start creating an application from
- Host: GitHub
- URL: https://github.com/pdxjohnny/go-starter
- Owner: pdxjohnny
- Created: 2015-07-28T07:55:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-15T20:47:44.000Z (about 9 years ago)
- Last Synced: 2024-03-16T06:51:35.304Z (8 months ago)
- Language: Go
- Size: 176 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker Go Base
---This repo is meant to be used as a starting point for go projects
It uses docker to compile the binaries and the main Dockerfile adds the linux
binary to the busybox image to create an extremely small final imageBuilding
---```bash
go build -o default_app_name_linux-amd64 -tags netgo *.go
# Or
./script/build
```
> `-tags netgo` will help you achieve static binaries :)Running
---```bash
./default_app_name_linux-amd64
docker run --rm -ti default_username/default_app_name
```Changing The Name
---```bash
./script/change-name $GITHUB_USERNAME $PROJECT_NAME
```- John Andersen