lang

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slice added in v1.4.1

type Slice []*String

func NewSlice added in v1.4.1

func NewSlice(arr []string) Slice

func (Slice) Length added in v1.4.1

func (s Slice) Length() int

func (Slice) ToSimple added in v1.4.1

func (s Slice) ToSimple() []string

type String

type String struct {
	// contains filtered or unexported fields
}

func NewEmptyString

func NewEmptyString() *String

func NewString

func NewString(v interface{}) *String

func NewStringValue added in v1.4.3

func NewStringValue(v interface{}) String

func (*String) Base64Decode added in v1.2.8

func (r *String) Base64Decode(b64 string) *String

func (*String) Base64Encode added in v1.2.8

func (r *String) Base64Encode() string

func (*String) CamelCase added in v1.3.7

func (r *String) CamelCase() *String

CamelCase example:

hello_world -> HelloWorld

hello-world -> HelloWorld

func (*String) Concat

func (r *String) Concat(new ...string) *String

func (*String) Contains

func (r *String) Contains(substr string) bool

func (*String) EndWith

func (r *String) EndWith(substr string) bool

func (*String) Equals

func (r *String) Equals(other string) bool

func (*String) EqualsHash added in v1.2.5

func (r *String) EqualsHash(hash string) bool

func (*String) EqualsIgnoreCase

func (r *String) EqualsIgnoreCase(other string) bool

func (*String) FindByPattern added in v1.4.3

func (r *String) FindByPattern(pattern string) ([]string, error)

func (*String) FirstLetterLower added in v1.4.3

func (r *String) FirstLetterLower() *String

func (*String) FirstLetterUpper added in v1.1.8

func (r *String) FirstLetterUpper() *String

func (*String) Format added in v1.2.5

func (r *String) Format(args ...interface{}) *String

func (*String) GetBytes

func (r *String) GetBytes() []byte

func (*String) GetInt

func (r *String) GetInt() (int, error)

func (*String) Hash added in v1.2.5

func (r *String) Hash() []byte

func (*String) HashString added in v1.2.5

func (r *String) HashString() string

func (*String) IndexOf

func (r *String) IndexOf(substr string) int

func (*String) IsEmpty

func (r *String) IsEmpty() bool

func (*String) KebabCase added in v1.3.7

func (r *String) KebabCase() *String

KebabCase example:

hello_world -> hello-world

HelloWorld -> hello-world

func (*String) LastIndexOf

func (r *String) LastIndexOf(substr string) int

func (*String) Length

func (r *String) Length() int

func (String) MarshalBinary added in v1.4.3

func (r String) MarshalBinary() (data []byte, err error)

func (String) MarshalJSON added in v1.4.3

func (r String) MarshalJSON() ([]byte, error)

func (String) MarshalText added in v1.4.3

func (r String) MarshalText() (text []byte, err error)

func (*String) Matches

func (r *String) Matches(pattern string) (bool, error)

func (*String) RemovePrefix added in v1.1.4

func (r *String) RemovePrefix(prefix string) *String

func (*String) RemoveSuffix added in v1.1.4

func (r *String) RemoveSuffix(suffix string) *String

func (*String) Replace

func (r *String) Replace(old, new string, n int) *String

func (*String) ReplaceAll

func (r *String) ReplaceAll(old, new string) *String

func (*String) Scan added in v1.4.3

func (r *String) Scan(src interface{}) error

func (*String) SnakeCase added in v1.3.7

func (r *String) SnakeCase() *String

SnakeCase example:

HelloWorld -> hello_world

hello-world -> hello_world

func (*String) Split

func (r *String) Split(sep string) Slice

func (*String) SplitN added in v1.4.0

func (r *String) SplitN(sep string, n int) Slice

func (*String) StartWith

func (r *String) StartWith(substr string) bool

func (String) String

func (r String) String() string

func (*String) SubString

func (r *String) SubString(from, to int) *String

func (*String) SubStringFrom

func (r *String) SubStringFrom(from int) *String

func (*String) SubStringTo

func (r *String) SubStringTo(to int) *String

func (*String) ToLower

func (r *String) ToLower() *String

func (*String) ToUpper

func (r *String) ToUpper() *String

func (*String) Trim

func (r *String) Trim(sep string) *String

func (*String) Trims added in v1.2.2

func (r *String) Trims() *String

func (*String) UnmarshalBinary added in v1.4.3

func (r *String) UnmarshalBinary(data []byte) error

func (*String) UnmarshalJSON added in v1.4.3

func (r *String) UnmarshalJSON(bytes []byte) error

func (*String) UnmarshalText added in v1.4.3

func (r *String) UnmarshalText(text []byte) error

func (*String) Value added in v1.4.3

func (r *String) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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