Documentation
¶
Index ¶
- func APIExample(lang APIExampleLanguage, server string, endpoint openapi.Endpoint, ...) string
- func CurlExample(server string, endpoint openapi.Endpoint, contentType string) string
- func GoExample(server string, endpoint openapi.Endpoint, contentType string) string
- func JSExample(server string, endpoint openapi.Endpoint, contentType string) string
- func PythonExample(server string, endpoint openapi.Endpoint, contentType string) string
- func SetEmbedFS(app embed.FS)
- type APIExampleLanguage
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIExample ¶ added in v1.1.2
func CurlExample ¶ added in v1.1.2
func PythonExample ¶ added in v1.1.2
func SetEmbedFS ¶
SetEmbedFS provides the embedded React shell sources to the generator.
Types ¶
type APIExampleLanguage ¶ added in v1.1.2
type APIExampleLanguage string
const ( LangCurl APIExampleLanguage = "curl" LangGo APIExampleLanguage = "go" LangPython APIExampleLanguage = "python" LangJS APIExampleLanguage = "js" )
Click to show internal directories.
Click to hide internal directories.