This is the Template function
Generated with
micro new github.com/micro/examples/template/fnc --namespace=go.micro --alias=template --type=fnc --plugin=registry=etcd
- FQDN: go.micro.fnc.template
- Type: fnc
- Alias: template
Micro functions depend on service discovery. The default is consul.
# install consul
brew install consul
# run consul
consul agent -dev
A Makefile is included for convenience
Build the binary
make build
Run the function once
./template-fnc
Build a docker image
make docker