Documentation ¶
Index ¶
- type Slice
- type String
- func (r *String) Base64Decode(b64 string) *String
- func (r *String) Base64Encode() string
- func (r *String) CamelCase() *String
- func (r *String) Concat(new ...string) *String
- func (r *String) Contains(substr string) bool
- func (r *String) EndWith(substr string) bool
- func (r *String) Equals(other string) bool
- func (r *String) EqualsHash(hash string) bool
- func (r *String) EqualsIgnoreCase(other string) bool
- func (r *String) FindByPattern(pattern string) ([]string, error)
- func (r *String) FirstLetterLower() *String
- func (r *String) FirstLetterUpper() *String
- func (r *String) Format(args ...interface{}) *String
- func (r *String) GetBytes() []byte
- func (r *String) GetInt() (int, error)
- func (r *String) Hash() []byte
- func (r *String) HashString() string
- func (r *String) IndexOf(substr string) int
- func (r *String) IsEmpty() bool
- func (r *String) KebabCase() *String
- func (r *String) LastIndexOf(substr string) int
- func (r *String) Length() int
- func (r String) MarshalBinary() (data []byte, err error)
- func (r String) MarshalJSON() ([]byte, error)
- func (r String) MarshalText() (text []byte, err error)
- func (r *String) Matches(pattern string) (bool, error)
- func (r *String) RemovePrefix(prefix string) *String
- func (r *String) RemoveSuffix(suffix string) *String
- func (r *String) Replace(old, new string, n int) *String
- func (r *String) ReplaceAll(old, new string) *String
- func (r *String) Scan(src interface{}) error
- func (r *String) SnakeCase() *String
- func (r *String) Split(sep string) Slice
- func (r *String) SplitN(sep string, n int) Slice
- func (r *String) StartWith(substr string) bool
- func (r String) String() string
- func (r *String) SubString(from, to int) *String
- func (r *String) SubStringFrom(from int) *String
- func (r *String) SubStringTo(to int) *String
- func (r *String) ToLower() *String
- func (r *String) ToUpper() *String
- func (r *String) Trim(sep string) *String
- func (r *String) Trims() *String
- func (r *String) UnmarshalBinary(data []byte) error
- func (r *String) UnmarshalJSON(bytes []byte) error
- func (r *String) UnmarshalText(text []byte) error
- func (r *String) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func NewEmptyString ¶
func NewEmptyString() *String
func NewStringValue ¶ added in v1.4.3
func NewStringValue(v interface{}) String
func (*String) Base64Decode ¶ added in v1.2.8
func (*String) Base64Encode ¶ added in v1.2.8
func (*String) CamelCase ¶ added in v1.3.7
CamelCase example:
hello_world -> HelloWorld
hello-world -> HelloWorld
func (*String) EqualsHash ¶ added in v1.2.5
func (*String) EqualsIgnoreCase ¶
func (*String) FindByPattern ¶ added in v1.4.3
func (*String) FirstLetterLower ¶ added in v1.4.3
func (*String) FirstLetterUpper ¶ added in v1.1.8
func (*String) HashString ¶ added in v1.2.5
func (*String) KebabCase ¶ added in v1.3.7
KebabCase example:
hello_world -> hello-world
HelloWorld -> hello-world
func (*String) LastIndexOf ¶
func (String) MarshalBinary ¶ added in v1.4.3
func (String) MarshalJSON ¶ added in v1.4.3
func (String) MarshalText ¶ added in v1.4.3
func (*String) RemovePrefix ¶ added in v1.1.4
func (*String) RemoveSuffix ¶ added in v1.1.4
func (*String) ReplaceAll ¶
func (*String) SnakeCase ¶ added in v1.3.7
SnakeCase example:
HelloWorld -> hello_world
hello-world -> hello_world
func (*String) SubStringFrom ¶
func (*String) SubStringTo ¶
func (*String) UnmarshalBinary ¶ added in v1.4.3
func (*String) UnmarshalJSON ¶ added in v1.4.3
func (*String) UnmarshalText ¶ added in v1.4.3
Click to show internal directories.
Click to hide internal directories.