Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains(slice []interface{}, item interface{}) bool
Contains returns true if the slice contains the item
func ContainsString ¶
ContainsString returns true if the slice contains the item
Types ¶
type RawData ¶
type RawData map[string]interface{}
RawData is a map of raw data, it can be used to unmarshal json data
func (RawData) GetAttributeValue ¶
GetAttributeValue returns string from RawData with key 'attributes' and the attribute key passed as parameter. An empty string is returned if no value can be found for 'attributes' or no attribute key exists with the key passed as parameter.
func (RawData) GetStringValue ¶
GetStringValue returns string from RawData. An empty string is returned if the key could not be found or the value is not a string.
Click to show internal directories.
Click to hide internal directories.