utils

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(str string) string

func GetArraySubtype

func GetArraySubtype(t string) string

func GetMapSubtypes

func GetMapSubtypes(t string) (string, string)

func GetNameForType

func GetNameForType(t string, imports map[string]string) string

func GetPackageNamesForType

func GetPackageNamesForType(t string) []string

func GetUnderlyingType

func GetUnderlyingType(t string) string

func IsArrayType

func IsArrayType(t string) bool

func IsDebugModeEnabled

func IsDebugModeEnabled() bool

func IsListType

func IsListType(t string) bool

func IsMapType

func IsMapType(t string) bool

func IsOptionType added in v0.16.6

func IsOptionType(t string) bool

func IsPrimitiveType

func IsPrimitiveType(t string) bool

func IsSliceType

func IsSliceType(t string) bool

func IsStringType

func IsStringType(t string) bool

func IsStructType

func IsStructType(t string) bool

func IsTraceModeEnabled

func IsTraceModeEnabled() bool

func JsonSerialize

func JsonSerialize(v any, ident bool) ([]byte, error)

func MapKeys

func MapKeys[M ~map[K]V, K comparable, V any](m M) []K

func MapValues

func MapValues[M ~map[K]V, K comparable, V any](m M) []V

func TimeNow

func TimeNow() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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