Go project bootstrap
A sample Go bootstrap project.
Versioning
Simply override the application version in the VERSION
file.
Building the project
The Makefile
contains all neccessary goals for build steps.
Simply type in make help
to list all available goals.
Running
Simply run the application using the mandatory parameter: ./my-app --input-string=First,Second,Third
The application then prints the following output:
2018-06-06 16:09:51.138 INFO (main.go:30) schema-version-collector Received inputString: First,Second,Third
2018-06-06 16:09:51.138 INFO (main.go:33) schema-version-collector Parsed input value: First
2018-06-06 16:09:51.138 INFO (main.go:33) schema-version-collector Parsed input value: Second
2018-06-06 16:09:51.138 INFO (main.go:33) schema-version-collector Parsed input value: Third
Building and running in Docker
Build the application using make build-docker
and run the following command: docker run my-organization/my-app:latest --input-string=First,Second,Third