Documentation
¶
Index ¶
- func Conv2Camel(name string) (camel string)
- func Conv2PlainType(str string, p reflect.Type) (any, error)
- func Conv2Snake(name string) (snake string)
- func Conv2SnakeAndCamel(name string) (snake, camel string)
- func EndsWith(str string, suffix string) bool
- func StartsWith(str string, prefix string) bool
- func StrIfElse(ok bool, onTrue, onFalse string) string
- func StrOr(str string, fallback ...string) string
- func TrimLower(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Conv2Camel ¶
func Conv2PlainType ¶
Conv2PlainType takes any string str and convert it into any plain types (possibly truncated)
func Conv2Snake ¶
func Conv2SnakeAndCamel ¶
func StartsWith ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.