util
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func IsMediaTypeJson(mediaType string) bool
- func LoadSwagger(filePath string) (swagger *openapi3.T, err error)
- func LoadSwaggerWithCircularReferenceCount(filePath string, _ int) (swagger *openapi3.T, err error)deprecated
- func LoadSwaggerWithOverlay(filePath string, opts LoadSwaggerWithOverlayOpts) (swagger *openapi3.T, err error)
- func ParseCommandLineList(input string) []string
- func ParseCommandlineMap(src string) (map[string]string, error)
- type LoadSwaggerWithOverlayOpts
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcIsMediaTypeJson¶
funcLoadSwaggerWithCircularReferenceCountdeprecated
Deprecated: In kin-openapi v0.126.0 (https://github.com/getkin/kin-openapi/tree/v0.126.0?tab=readme-ov-file#v01260) the Circular Reference Counter functionality was removed, instead resolving all references with backtracking, to avoid needing to provide a limit to reference counts.
This is now identital in method as `LoadSwagger`.
funcLoadSwaggerWithOverlay¶added inv2.4.0
func LoadSwaggerWithOverlay(filePathstring, optsLoadSwaggerWithOverlayOpts) (swagger *openapi3.T, errerror)
funcParseCommandLineList¶
ParseCommandLineList parses comma separated string lists which are passedin on the command line. Spaces are trimmed off both sides of resultstrings.
funcParseCommandlineMap¶
The input mapping is expressed on the command line as `key1:value1,key2:value2,...`We parse it here, but need to keep in mind that keys or values may containcommas and colons. We will allow escaping those using double quotes, sowhen passing in "key1":"value1", we will not look inside the quoted sections.