Categorygithub.com/davidkhala/goutils/restful
modulepackage
0.1.3
Repository: https://github.com/davidkhala/goutils.git
Documentation: pkg.go.dev

# README

github.com/davidkhala/goutils/restful

Swagger Support

To generate swagger docs

  1. get binary swag by go install github.com/swaggo/swag/cmd/swag@latest
  2. swag init -g main/main.go
    • or use the go generate banner in main/main.go
  3. access swagger: if route setup as /swagger/*any, go to /swagger/index.html

# Packages

Package docs Code generated by swaggo/swag.
go:generate swag init -g main/main.go -o ../docs -d ../.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Ping @Router /ping [get] @Success 200 {string} string "pong" @Produce text/plain.
No description provided by the author
No description provided by the author