Documentation ¶
Index ¶
- func AutoPtr(s string) *string
- func Bool(s string) (bool, error)
- func BoolOr(s string, or bool) bool
- func Contains(ss []string, c string) (index int, isContains bool)
- func Float64(s string) (float64, error)
- func Float64Or(s string, or float64) float64
- func Int(s string) (int, error)
- func Int32(s string) (int32, error)
- func Int32Or(s string, or int32) int32
- func Int64(s string) (int64, error)
- func Int64Or(s string, or int64) int64
- func IntOr(s string, or int) int
- func Join(sep string, ss ...string) string
- func JoinNotEmpty(sep string, ss ...string) string
- func JsonFromObj(o any) string
- func JsonToObj[T any](s string) T
- func Ptr(s string) *string
- func ReplaceAll(origin string, newVal string, oldVals ...string) string
- func SnakeCase(input string) string
- func ToBoolForce(s string) bool
- func ToFloat64Force(s string) float64
- func ToInt32Force(s string) int32
- func ToInt64Force(s string) int64
- func ToIntForce(s string) int
- func Trim(s string) string
- func TrimAll(ss []string) []string
- func TrimAllAndClean(ss []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinNotEmpty ¶ added in v0.0.16
func JsonFromObj ¶ added in v0.0.16
func ReplaceAll ¶ added in v0.0.15
func ToBoolForce ¶ added in v0.0.16
func ToFloat64Force ¶ added in v0.0.16
func ToInt32Force ¶ added in v0.0.16
func ToInt64Force ¶ added in v0.0.16
func ToIntForce ¶ added in v0.0.16
func TrimAllAndClean ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.