stringx

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoPtr added in v0.0.15

func AutoPtr(s string) *string

func Bool

func Bool(s string) (bool, error)

func Concat

func Concat(sep string, ss ...string) string

func ConcatIfNotEmpty

func ConcatIfNotEmpty(sep string, ss ...string) string

func Contains

func Contains(ss []string, c string) (index int, isContains bool)

func Int

func Int(s string) (int, error)

func Int32

func Int32(s string) (int32, error)

func Int64

func Int64(s string) (int64, error)

func Ptr

func Ptr(s string) *string

func ReplaceAll added in v0.0.15

func ReplaceAll(origin string, newVal string, oldVals ...string) string

func SnakeCase

func SnakeCase(input string) string

func Trim

func Trim(s string) string

func TrimAll

func TrimAll(ss []string) []string

func TrimAllAndClean

func TrimAllAndClean(ss []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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