https://github.com/mh4gf/go-template
https://github.com/mh4gf/go-template
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mh4gf/go-template
- Owner: MH4GF
- License: mit
- Created: 2020-04-08T08:02:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T09:12:59.000Z (about 6 years ago)
- Last Synced: 2025-10-11T04:58:34.460Z (8 months ago)
- Language: Makefile
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-template
## usage
### 1. setup git
```shell script
$ git clone git@github.com:MH4GF/go-template.git
$ cd ..
# copy and rename to APP_NAME
$ cp -r go-template
$ cd
$ rm -rf .git
$ git init
```
### 2. go mod init
```shell script
$ go mod init
go: creating new go.mod: module
```
### 3. rename APP_NAME in sources.
```shell script
$ vim Dockerfile
- ARG app-name="app-name"
+ ARG app-name=""
$ vim Makefile
- NAME := app-name
+ NAME :=
$ vim build.sh
- declare -r Name="app-name"
+ declare -r Name=""
```
### 4. build
```shell script
$ make build
$ bin/
hello world!
```