strs

package
v0.0.0-...-6357336 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conv2Camel

func Conv2Camel(name string) (camel string)

func Conv2PlainType

func Conv2PlainType(str string, p reflect.Type) (any, error)

Conv2PlainType takes any string str and convert it into any plain types (possibly truncated)

func Conv2Snake

func Conv2Snake(name string) (snake string)

func Conv2SnakeAndCamel

func Conv2SnakeAndCamel(name string) (snake, camel string)

func EndsWith

func EndsWith(str string, suffix string) bool

func StartsWith

func StartsWith(str string, prefix string) bool

func StrIfElse

func StrIfElse(ok bool, onTrue, onFalse string) string

func StrOr

func StrOr(str string, fallback ...string) string

func TrimLower

func TrimLower(str string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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