util

package
v0.2.0-rc Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SonicUseInt64 = sonic.Config{
	UseInt64: true,
}.Froze()

Functions

func ConvertNameCase

func ConvertNameCase(opt meta.NameCase, name string) string

func SplitGoTags

func SplitGoTags(input string) []string

func SplitPrefix

func SplitPrefix(t string) (pkg, name string)

func SplitSubfix

func SplitSubfix(t string) (typ, val string)

func SplitSubfix2

func SplitSubfix2(t string) (typ, val string)

func SplitTagOptions

func SplitTagOptions(tag string) (ret []string, err error)

func ToLowerCamelCase

func ToLowerCamelCase(name string) string

LowerFirstLetter

func ToSnakeCase

func ToSnakeCase(name string) string

ToSnakeCase converts a camelCase string to snake_case.

func ToUpperCamelCase

func ToUpperCamelCase(name string) string

ToCamelCase converts a snake_case string to camelCase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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