apidoc

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const EXT = ".service.swagger.json"

Variables

View Source
var FilePath = "./api/"
View Source
var PrefixUri = "/api-doc/"

Functions

func ApiMod

func ApiMod(w http.ResponseWriter, r *http.Request)

func GetDoc

func GetDoc(path string) *spec.Swagger

参数为路径和格式

func HttpHandle

func HttpHandle(w http.ResponseWriter, r *http.Request)

func NilDoc

func NilDoc()

func WriteToFile

func WriteToFile(realPath, modName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL