Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FoundInArray ¶
FoundInArray searches array for item without distinguishing between uppercase and lowercase and non-alphanumeric characters. Returns true if item is a value of array
func OccurrencesOf ¶
OccurrencesOf returns the number of times a string appears in the given slice of strings.
Types ¶
type OccurrenceSet ¶
OccurrenceSet captures of occurrences of string values.
func NewOccurrenceSet ¶
func NewOccurrenceSet(s ...string) OccurrenceSet
NewOccurrenceSet returns new instance of OccurrenceSet.
func (OccurrenceSet) Get ¶
func (o OccurrenceSet) Get(entry string) int
Get returns occurrences of given string
func (OccurrenceSet) Merge ¶
func (o OccurrenceSet) Merge(b OccurrenceSet)
Merge given set of occurrences
func (OccurrenceSet) Values ¶
func (o OccurrenceSet) Values() []string
Values returns all occurrences
Click to show internal directories.
Click to hide internal directories.