util

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 19 modules, 23 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSwagger

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

func ParseCommandLineList added in v1.4.0

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 added in v1.3.9

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

The input mapping is experessed 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