Documentation
¶
Index ¶
- func CamelTitle(str string, shortUpper bool) string
- func DeepClone[T any](v *T) (t *T)
- func OrValue[T comparable](v T, or T) (t T)
- func ParseIntSlice(s string, delimer string) []int
- func ParseJSONArray(v interface{}) ([]map[string]interface{}, error)
- func ParseJSONObject(v interface{}) (map[string]interface{}, error)
- func Ternary[T any](cond bool, trueVal, falseVal T) T
- func Title(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrValue ¶
func OrValue[T comparable](v T, or T) (t T)
func ParseJSONArray ¶
ParseJSONArray 转换为Json数组
func ParseJSONObject ¶
ParseJSONObject 转换为Json对象
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.