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

https://github.com/mh4gf/go-template


https://github.com/mh4gf/go-template

Last synced: 4 months ago
JSON representation

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