util

package
v2.0.0-...-743db67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMediaTypeJson

func IsMediaTypeJson(mediaType string) bool

func LoadSwagger

func LoadSwagger(filePath string) (swagger *openapi3.T, err error)

func LoadSwaggerWithCircularReferenceCount

func LoadSwaggerWithCircularReferenceCount(filePath string, circularReferenceCount int) (swagger *openapi3.T, err error)

func ParseCommandLineList

func ParseCommandLineList(input string) []string

ParseCommandLineList parses comma separated string lists which are passed in on the command line. Spaces are trimmed off both sides of result strings.

func ParseCommandlineMap

func ParseCommandlineMap(src string) (map[string]string, error)

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 contain commas and colons. We will allow escaping those using double quotes, so when passing in "key1":"value1", we will not look inside the quoted sections.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL