Skip to content

Goland is web server designed by my golang learnings

Notifications You must be signed in to change notification settings

ImShakthi/goland

Repository files navigation

Goland

Goland is a simple web server built in golang using gin web framework.

Frameworks used

Name Use
gin Web frame work
logrus Structured logger
gomock Mocking framework for testing
dlv Debugger
swagger REST API representation tooling

Features

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

Installation

To setup Goland web server use the following command, this uses the Makefile with predefined configuration.

make setup build && echo $?

Run the server

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

About

Goland is web server designed by my golang learnings

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published