Documentation
¶
Index ¶
- func FoundInArray(item string, array []string) bool
- func InArray(item string, array []string) bool
- func Intersect(a []string, b []string) []string
- func MergeMapWithPrefix(a map[string]string, b map[string]string, prefix string)
- func OccurrencesOf(s string, in []string) int
- func Remove(item string, array []string) []string
- type OccurrenceSet
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 MergeMapWithPrefix ¶
Merge contents of one map into another using a prefix.
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.