template
Directory actions
More options
Directory actions
More options
template
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
package template
var (
Readme = `# {{title .Alias}} {{title .Type}}
This is the {{title .Alias}} service with fqdn {{.FQDN}}.
## Getting Started
### Prerequisites
Install Consul
[https://www.consul.io/intro/getting-started/install.html](https://www.consul.io/intro/getting-started/install.html)
Run Consul
` + "```" +
`
$ consul agent -dev -advertise=127.0.0.1
` + "```" +
`
### Run Service
` + "```" +
`
$ go run main.go
` + "```" +
`
### Building a container
If you would like to build the docker container do the following
` + "```" +
`
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o {{.Alias}}-{{.Type}} ./main.go
docker build -t {{.Alias}}-{{.Type}} .
` + "```"
)