Documentation ¶
Overview ¶
Package ctype provides some custom types with useful function extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringArray ¶
type StringArray []string
StringArray extends a string slice by some useful functionalities.
func (StringArray) Contains ¶
func (arr StringArray) Contains(v string) bool
Contains returns true when v is included in arr.
func (StringArray) IndexOf ¶
func (arr StringArray) IndexOf(v string) int
IndexOf returns the index of v in arr. If not found, the returned index is -1.
func (StringArray) Splice ¶
func (arr StringArray) Splice(i, r int) StringArray
Splice returns a new array sliced at i by the range of r.
Click to show internal directories.
Click to hide internal directories.