Documentation ¶
Index ¶
- func Clean(field, content string) string
- func JsonMarshal(swagger *openapi3.Swagger) ([]byte, error)
- func Marshal(fileName string, swagger *openapi3.Swagger) ([]byte, error)
- func PreviewContent(content string, num int) string
- func YamlMarshal(swagger *openapi3.Swagger) ([]byte, error)
- type MarshalType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreviewContent ¶ added in v0.0.6
Types ¶
type MarshalType ¶
type MarshalType string
var Json MarshalType = "json"
var Yaml MarshalType = "yaml"
func FindEx ¶
func FindEx(fileName string) MarshalType
Click to show internal directories.
Click to hide internal directories.