{"modulePath":"github.com/d3code/oapi-codegen/v2","version":"v2.0.0-20250310002802-a1d00b1ebe20","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package util\n\n## Functions\n\n```go\nfunc IsMediaTypeJson(mediaType string) bool\n```\n\n```go\nfunc LoadSwagger(filePath string) (swagger *openapi3.T, err error)\n```\n\n```go\nfunc LoadSwaggerWithCircularReferenceCount(filePath string, _ int) (swagger *openapi3.T, err error)\n```\nDeprecated: In kin-openapi v0.126.0 ([https://github.com/d3code/kin-openapi/tree/v0.126.0?tab=readme-ov-file#v01260](https://github.com/d3code/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.\n\nThis is now identital in method as \\`LoadSwagger\\`.\n\n```go\nfunc LoadSwaggerWithOverlay(filePath string, opts LoadSwaggerWithOverlayOpts) (swagger *openapi3.T, err error)\n```\n\n```go\nfunc ParseCommandLineList(input string) []string\n```\nParseCommandLineList parses comma separated string lists which are passed in on the command line. Spaces are trimmed off both sides of result strings.\n\n```go\nfunc ParseCommandlineMap(src string) (map[string]string, error)\n```\nThe 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.\n\n## Types\n\n```go\ntype LoadSwaggerWithOverlayOpts struct {\n\tPath   string\n\tStrict bool\n}\n```\n\n","path":"github.com/d3code/oapi-codegen/v2/pkg/util","name":"util","synopsis":"","isRedistributable":true}
