mu-majid / microservices-go

Building A micro-services Application with GO.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Product API

Overview:

  • Building A microservice with GO.
  • Starting with very basic implementation, like using GO standard library to build a custom ServeMUX, with handling routing and matching.

Generating Swagger Documentation

Swagger documentation is generated from the code annotations inside the source using go-swagger.

Go swagger can be installed with the following command:

go get -u github.com/go-swagger/go-swagger/cmd/swagger

You can generate the documentation using the command:

swagger generate spec -o ./swagger.yaml --scan-models

After running the application:

go run main.go

Swagger documentation can be viewed using the ReDoc UI in your browser at http://localhost:9090/docs.

About

Building A micro-services Application with GO.


Languages

Language:Go 72.4%Language:JavaScript 21.1%Language:HTML 3.2%Language:CSS 2.2%Language:Makefile 1.0%