Documentation
¶
Index ¶
- type Array
- type Str
- func (s Str) Append(values ...string) Str
- func (s Str) AppendRune(values ...rune) Str
- func (s Str) At(index int) Str
- func (s Str) Clone() Str
- func (s Str) Compare(value string) int
- func (s Str) Contains(values ...string) bool
- func (s Str) ContainsAny(chars string) bool
- func (s Str) Count(search string) int
- func (s Str) Cut(search string) (before, after Str, found bool)
- func (s Str) CutPrefix(prefix string) (Str, bool)
- func (s Str) CutSuffix(suffix string) (Str, bool)
- func (s Str) Fields() Array
- func (s Str) FieldsFunc(fn func(rune) bool) Array
- func (s Str) Find(pattern string) Str
- func (s Str) FindAll(pattern string) Array
- func (s Str) FindAllIndex(pattern string) [][]int
- func (s Str) FindAllIndexRegex(re *regexp.Regexp) [][]int
- func (s Str) FindAllRegex(re *regexp.Regexp) Array
- func (s Str) FindIndex(pattern string) []int
- func (s Str) FindIndexRegex(re *regexp.Regexp) []int
- func (s Str) FindRegex(re *regexp.Regexp) Str
- func (s Str) HasPrefix(prefixes ...string) bool
- func (s Str) HasSuffix(suffixes ...string) bool
- func (s Str) In(values ...string) bool
- func (s Str) Index(search string) int
- func (s Str) IndexAny(chars string) int
- func (s Str) Join(values []string) Str
- func (s Str) LastIndex(search string) int
- func (s Str) LastIndexAny(chars string) int
- func (s Str) Len() int
- func (s Str) Map(fn func(rune) rune) Str
- func (s Str) MarshalBinary() ([]byte, error)
- func (s Str) MarshalJSON() ([]byte, error)
- func (s Str) MarshalText() ([]byte, error)
- func (s Str) Match(patterns ...string) bool
- func (s Str) MatchRegex(regexes ...*regexp.Regexp) bool
- func (s Str) PadEnd(length int, pad string) Str
- func (s Str) PadStart(length int, pad string) Str
- func (s Str) ParseFloat() (float64, error)
- func (s Str) ParseInt() (int64, error)
- func (s Str) ParseUint() (uint64, error)
- func (s Str) PartOf(values ...string) bool
- func (s Str) PopEnd() (rune, Str)
- func (s Str) PopStart() (rune, Str)
- func (s Str) Prepend(values ...string) Str
- func (s Str) PrependRune(values ...rune) Str
- func (s Str) Reader() *strings.Reader
- func (s Str) Repeat(count int) Str
- func (s Str) Replace(old, new string) Str
- func (s Str) ReplaceEach(old, new string) Str
- func (s Str) ReplaceLast(old, new string) Str
- func (s Str) ReplaceN(old, new string, n int) Str
- func (s Str) ReplacePattern(pattern, new string) Str
- func (s Str) ReplaceRegex(regex *regexp.Regexp, new string) Str
- func (s Str) RuneAt(index int) Str
- func (s Str) RuneCount() int
- func (s Str) RuneIndex(r rune) int
- func (s Str) Runes() Array
- func (s Str) Slice(start, end int) Str
- func (s Str) SliceFrom(index int) Str
- func (s Str) SliceRunes(start, end int) Str
- func (s Str) SliceRunesFrom(index int) Str
- func (s Str) SliceRunesTo(index int) Str
- func (s Str) SliceTo(index int) Str
- func (s Str) Split(delim string) Array
- func (s Str) SplitN(delim string, count int) Array
- func (s Str) SplitPattern(pattern string) Array
- func (s Str) SplitRegex(regex *regexp.Regexp) Array
- func (s Str) String() string
- func (s Str) ToCamel() Str
- func (s Str) ToGoCamel() Str
- func (s Str) ToGoPascal() Str
- func (s Str) ToKebab() Str
- func (s Str) ToLower() Str
- func (s Str) ToPascal() Str
- func (s Str) ToSnake() Str
- func (s Str) ToUpper() Str
- func (s Str) ToUpperSnake() Str
- func (s Str) Trim() Str
- func (s Str) TrimFunc(fn func(rune) bool) Str
- func (s Str) TrimPrefix(prefixes ...string) Str
- func (s Str) TrimSuffix(suffixes ...string) Str
- func (s Str) TrimValue(values ...string) Str
- func (s *Str) UnmarshalBinary(v []byte) error
- func (s *Str) UnmarshalJSON(v []byte) error
- func (s *Str) UnmarshalText(v []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Str ¶
type Str string
func (Str) AppendRune ¶
func (Str) ContainsAny ¶
func (Str) FindAllIndex ¶
func (Str) FindAllIndexRegex ¶ added in v0.2.0
func (Str) LastIndexAny ¶
func (Str) MarshalBinary ¶
func (Str) MarshalJSON ¶
func (Str) MarshalText ¶
func (Str) ParseFloat ¶
func (Str) PrependRune ¶
func (Str) ReplaceEach ¶
func (Str) ReplaceLast ¶
func (Str) ReplacePattern ¶
func (Str) SliceRunes ¶
func (Str) SliceRunesFrom ¶
func (Str) SliceRunesTo ¶
func (Str) SplitPattern ¶
func (Str) ToGoPascal ¶
func (Str) ToUpperSnake ¶
func (Str) TrimPrefix ¶
func (Str) TrimSuffix ¶
func (*Str) UnmarshalBinary ¶
func (*Str) UnmarshalJSON ¶
func (*Str) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.