Goland is a simple web server built in golang using gin web framework.
Name | Use |
---|---|
gin | Web frame work |
logrus | Structured logger |
gomock | Mocking framework for testing |
dlv | Debugger |
swagger | REST API representation tooling |
Following are the list of features supported in Goland.
compile Build the app
fmt Run the code formatter
generate-docs Generates the static files to be embedded into the application + swagger.json
generate-mocks Generate mocks to be used only for unit testing
lint Run the code linter
run Build and start app locally (outside docker)
setup Setup necessary dependencies and folder structure
test Run tests
To setup Goland web server use the following command, this uses the Makefile with predefined configuration.
make setup build && echo $?
To start the server use the following, by default server runs in 8000
.
make run
One can customize the port us follows
PORT=8001 make run