1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/examples/template/api
2020-12-26 15:21:29 +00:00
..
client rename imports 2020-12-26 15:21:29 +00:00
handler rename imports 2020-12-26 15:21:29 +00:00
proto/example Add examples 2020-12-26 15:17:20 +00:00
Dockerfile Add examples 2020-12-26 15:17:20 +00:00
main.go rename imports 2020-12-26 15:21:29 +00:00
Makefile Add examples 2020-12-26 15:17:20 +00:00
README.md Add examples 2020-12-26 15:17:20 +00:00

Template Api

This is the Template service with fqdn go.micro.api.template.

Getting Started

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 template-api ./main.go
docker build -t template-api .