Documentation
¶
Index ¶
- func Contains(a []string, x string) bool
- func ExtractStringSlice(values []interface{}) []string
- func GetBoolValue(data map[string]interface{}, param string, def *bool) *bool
- func GetBoolValueFromString(value string, defaultValue bool) *bool
- func GetFloat64Value(data map[string]interface{}, param string, def *float64) *float64
- func GetIntValue(data map[string]interface{}, param string, def int) int
- func GetIntValueFromString(value string, defaultValue int) *int
- func GetJSON(url string, cookies ...*http.Cookie) map[string]interface{}
- func GetJSONFix(url string, cookies ...*http.Cookie) map[string]interface{}
- func GetJSONUserAgent(url string, userAgent *string, cookies ...*http.Cookie) map[string]interface{}
- func GetMapValue(data map[string]interface{}, param string) *map[string]interface{}
- func GetStringValue(data map[string]interface{}, param string, def *string) *string
- func GetTimeFromString(str string, layouts ...string) *time.Time
- func Min(x, y int) int
- func Quote(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractStringSlice ¶
func ExtractStringSlice(values []interface{}) []string
ExtractStringSlice gets string slice from interface
func GetBoolValue ¶
GetBoolValue from interface
func GetBoolValueFromString ¶
GetBoolValueFromString from interface
func GetFloat64Value ¶
GetFloat64Value from interface
func GetIntValue ¶
GetIntValue from interface
func GetIntValueFromString ¶
GetIntValueFromString from interface
func GetJSON ¶
GetJSON downloads contents of url and returns json representation by unmarshal result
func GetJSONFix ¶
GetJSONFix downloads contents of url and returns json representation by unmarshal result
func GetJSONUserAgent ¶
func GetJSONUserAgent(url string, userAgent *string, cookies ...*http.Cookie) map[string]interface{}
GetJSONUserAgent downloads contents of url and returns json representation by unmarshal result
func GetMapValue ¶
GetMapValue returns Map from Map
func GetStringValue ¶
GetStringValue from interface
func GetTimeFromString ¶
GetTimeFromString from string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.