MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / Warnings

Method Warnings

pkg/codegen/configuration.go:179–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func (oo GenerateOptions) Warnings() map[string]string {
180 warnings := make(map[string]string)
181
182 if oo.StdHTTPServer {
183 if warning := oo.warningForStdHTTP(); warning != "" {
184 warnings["std-http-server"] = warning
185 }
186 }
187
188 return warnings
189}
190
191func (oo GenerateOptions) warningForStdHTTP() string {
192 pathToGoMod, mod, err := findAndParseGoModuleForDepth(".", maximumDepthToSearchForGoMod)

Callers 1

mainFunction · 0.80

Calls 1

warningForStdHTTPMethod · 0.95

Tested by

no test coverage detected