Documentation
¶
Index ¶
- func FindGoMod(startPath string, module string) (string, error)
- func First[S ~[]E, E any](s S, f func(E) bool) (E, error)
- func IsComplexType(typ string) bool
- func IsSimpleType(t string) bool
- func Map[S ~[]E, E any, R any](s S, f func(E) R) []R
- func MapPointers[S ~[]*R, R any](s S) []R
- func ParseGoalesceTagSettings(tag string) (map[string]string, error)
- func StripModulePackage(s, moduleName string) string
- func ToCamelCase(s string) string
- func ToHtmlCase(s string) string
- func ToPascalCase(s string) string
- func ToSnakeCase(s string) string
- type OpenApiType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsComplexType ¶ added in v1.0.5
Is the type a non-simple type?
func IsSimpleType ¶ added in v1.0.5
Is the type a simple, built-in type?
func MapPointers ¶
func MapPointers[S ~[]*R, R any](s S) []R
func ParseGoalesceTagSettings ¶ added in v1.0.5
Parse goalesce settings from a field's tag
func StripModulePackage ¶
Types ¶
type OpenApiType ¶ added in v1.0.5
type OpenApiType struct { Type string Ref *string Items *map[string]string Format *string Nullable bool }
Metadata for generating an OpenAPI field
func ToOpenApiType ¶ added in v1.0.5
func ToOpenApiType(typ string) *OpenApiType
TODO(joeriddles): Refactor this monstrosity
func (*OpenApiType) IsSimpleType ¶ added in v1.0.17
func (o *OpenApiType) IsSimpleType() bool
Click to show internal directories.
Click to hide internal directories.