jeffs-basic-go-template example
A simple go template with flags, logging & error handling.
Just copy/paste to use in your projects.
Refer to the following go examples for more information,
GitHub Webpage
RUN
Remember to get the packages,
go get -u -v github.com/sirupsen/logrus
go get -u -v github.com/pkg/errors
The default flag i=42 which will be an error. Hence set the flag i to
any other integer,
go run jeffs-basic-go-template.go
go run jeffs-basic-go-template.go -i 42
go run jeffs-basic-go-template.go -i 10