Movatterモバイル変換


[0]ホーム

URL:


util

package
v2.5.0Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License:Apache-2.0Imports:9Imported by:18

Details

Repository

github.com/oapi-codegen/oapi-codegen

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcIsMediaTypeJson

func IsMediaTypeJson(mediaTypestring)bool

funcLoadSwagger

func LoadSwagger(filePathstring) (swagger *openapi3.T, errerror)

funcLoadSwaggerWithCircularReferenceCountdeprecated

func LoadSwaggerWithCircularReferenceCount(filePathstring, _int) (swagger *openapi3.T, errerror)

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`.

funcLoadSwaggerWithOverlayadded inv2.4.0

func LoadSwaggerWithOverlay(filePathstring, optsLoadSwaggerWithOverlayOpts) (swagger *openapi3.T, errerror)

funcParseCommandLineList

func ParseCommandLineList(inputstring) []string

ParseCommandLineList parses comma separated string lists which are passedin on the command line. Spaces are trimmed off both sides of resultstrings.

funcParseCommandlineMap

func ParseCommandlineMap(srcstring) (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 containcommas and colons. We will allow escaping those using double quotes, sowhen passing in "key1":"value1", we will not look inside the quoted sections.

Types

typeLoadSwaggerWithOverlayOptsadded inv2.4.0

type LoadSwaggerWithOverlayOpts struct {PathstringStrictbool}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp