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

Function stringOrEmpty

pkg/codegen/schema.go:753–758  ·  view source on GitHub ↗
(b bool, s string)

Source from the content-addressed store, hash-verified

751}
752
753func stringOrEmpty(b bool, s string) string {
754 if b {
755 return s
756 }
757 return ""
758}
759
760// GenFieldsFromProperties produce corresponding field names with JSON annotations,
761// given a list of schema descriptors

Callers 1

GenFieldsFromPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected