Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StringArray ¶
type StringArray []string
StringArray describes string array type.
func (*StringArray) AddIfNotContains ¶
func (s *StringArray) AddIfNotContains(item string) bool
AddIfNotContains add item if not already in collection. Function returns true or false according to add result.
func (StringArray) Contains ¶
func (s StringArray) Contains(item string) bool
Contains checks if item is in collection.
func (*StringArray) HasOneOf ¶
func (s *StringArray) HasOneOf(items ...string) bool
HasOneOf returns true when one of provided items is found in array.
func (*StringArray) Remove ¶
func (s *StringArray) Remove(item string) bool
Remove item from collection. Function returns true or false according to removal result.
Click to show internal directories.
Click to hide internal directories.