Documentation ¶
Index ¶
- Variables
- func AddParametersRefLinkPrefix(name string) string
- func AddSchemaRefLinkPrefix(name string) string
- func GenSchemaObjectID(pkgName, typeName string, withoutPkg bool) string
- func GetModuleNameFromGoMod(path string) string
- func IsBasicGoType(typeName string) bool
- func IsEnumType(name string) bool
- func IsGoTypeOASType(typeName string) bool
- func IsInStringList(list []string, s string) bool
- func IsInterfaceType(typeName string) bool
- func IsMainFile(path string) bool
- func IsValidHTTPStatusCode(statusCode int) bool
- func ReplaceBackslash(origin string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicGoTypes = map[string]bool{ "bool": true, "uint": true, "uint8": true, "uint16": true, "uint32": true, "uint64": true, "int": true, "int8": true, "int16": true, "int32": true, "int64": true, "float32": true, "float64": true, "string": true, "complex64": true, "complex128": true, "byte": true, "rune": true, "uintptr": true, "error": true, }
View Source
var GoTypesOASFormats = map[string]string{
"bool": "boolean",
"uint": "int64",
"uint8": "int64",
"uint16": "int64",
"uint32": "int64",
"uint64": "int64",
"int": "int64",
"int8": "int64",
"int16": "int64",
"int32": "int64",
"int64": "int64",
"float32": "float",
"float64": "double",
"string": "string",
}
View Source
var GoTypesOASTypes = map[string]string{
"bool": "boolean",
"uint": "integer",
"uint8": "integer",
"uint16": "integer",
"uint32": "integer",
"uint64": "integer",
"int": "integer",
"int8": "integer",
"int16": "integer",
"int32": "integer",
"int64": "integer",
"float32": "number",
"float64": "number",
"string": "string",
}
Functions ¶
func AddSchemaRefLinkPrefix ¶
func GenSchemaObjectID ¶
func GetModuleNameFromGoMod ¶
func IsBasicGoType ¶
func IsEnumType ¶
func IsGoTypeOASType ¶
func IsInStringList ¶
func IsInterfaceType ¶
func IsMainFile ¶
func IsValidHTTPStatusCode ¶
func ReplaceBackslash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.