apidoc

package
v0.0.0-...-f5948c0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 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