helpers

package
v0.102.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureAcronym

func ConfigureAcronym(key, val string)

ConfigureAcronym allows you to add additional words which will be considered acronyms

func ForEachMapSorted

func ForEachMapSorted[V any](m map[string]V, f func(k string, v any) error) error

ForEachMapSorted iterate over a map[string]<T> sorted by keys.

func Header(packageName, version string) []byte

Header retruns header file for generated go source files.

func RenderDoc

func RenderDoc(doc string) string

RenderDoc returns proper go doc comment from an OpenAPI spec field documentation.

func RenderReference

func RenderReference(referencePath string) string

RenderReference renders OpenAPI reference from path to go style.

func ToCamel

func ToCamel(s string) string

ToCamel converts a string to CamelCase

func ToLowerCamel

func ToLowerCamel(s string) string

ToLowerCamel converts a string to lowerCamelCase

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL