Documentation ¶
Index ¶
- func Make(document *goquery.Document)
- type Keywords
- func (pointer *Keywords) Add(key string, names ...string) *Keywords
- func (pointer *Keywords) Assign(key string, slice *slice.Slice) *Keywords
- func (pointer *Keywords) Each(f func(key string, slice *slice.Slice)) *Keywords
- func (pointer *Keywords) Fetch(key string) *slice.Slice
- func (pointer *Keywords) Get(key string) (*slice.Slice, bool)
- func (pointer *Keywords) Has(key string) bool
- func (pointer *Keywords) Keys() *slice.Slice
- func (pointer *Keywords) Len() int
- func (pointer *Keywords) Remove(key string) bool
- func (pointer *Keywords) Values() *slice.Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Keywords ¶
type Keywords struct {
// contains filtered or unexported fields
}
Keywords is a map-like struct with methods used to perform traversal and retrieval of slice.Slice pointers.
func Get ¶
func Get() *Keywords
Get attempts to open all Keywords data from the emojipedia/keywords folder, but panics if an error occurs.
func (*Keywords) Add ¶
Add method adds one or more strings to the struct using the key reference to update or create the associated slice.
func (*Keywords) Fetch ¶
Fetch retrieves the slice.Slice pointer held by the argument key. Panics if key does not exist.
func (*Keywords) Get ¶
Get returns the slice.Slice pointer held by the argument key and a boolean indicating if it was successfully retrieved. Panics if cannot convert to slice.Slice pointer.
func (*Keywords) Keys ¶
Keys method returns a slice.Slice of a given Keywords' own property names, in the same order as we get with a normal loop.