Documentation ¶
Index ¶
- Variables
- func Handle(name string, opts ...Option) []byte
- func UseInGin(r gin.IRouter)
- type Handler
- func (h *Handler) GetContent(version string, p string) string
- func (h *Handler) GetSidebar(version string) string
- func (h *Handler) GetStorageFilePath(name string) string
- func (h *Handler) GetVersion(version string) map[string]string
- func (h *Handler) Handle(name string, opts ...Option) []byte
- func (h *Handler) ParseSidebar(version string) map[string]map[string]string
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHandler = &Handler{
DefaultVersionName: "default",
DocsDir: "storage/docs",
PrefixUri: "docs",
}
Functions ¶
Types ¶
type Handler ¶
type Handler struct { DefaultVersionName string DocsDir string PrefixUri string // contains filtered or unexported fields }
func (*Handler) GetSidebar ¶
func (*Handler) GetStorageFilePath ¶
Click to show internal directories.
Click to hide internal directories.