Documentation ¶
Index ¶
- func AsArray(v interface{}) []interface{}
- func AsBool(v interface{}, defaultValue bool) bool
- func AsDuration(v interface{}, defaultValue time.Duration) time.Duration
- func AsFloat64(v interface{}, defaultValue float64) float64
- func AsInt(v interface{}, defaultValue int) int
- func AsInt32(v interface{}, defaultValue int32) int32
- func AsInt64(v interface{}, defaultValue int64) int64
- func AsMap(v interface{}) map[string]interface{}
- func AsMapSlice(v interface{}) []map[string]interface{}
- func AsString(v interface{}, defaultValue string) string
- func AsStringSlice(v interface{}, defaultValue []string) []string
- func AsUInt32(v interface{}, defaultValue uint32) uint32
- func ConvertToInterface(m interface{}, template interface{}) interface{}
- func ConvertToMap(s interface{}) map[string]interface{}
- func ConvertToSlice(m interface{}, template []interface{}) []interface{}
- func MustAsInt(v interface{}) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsMapSlice ¶
func AsMapSlice(v interface{}) []map[string]interface{}
func AsStringSlice ¶
func ConvertToInterface ¶
func ConvertToInterface(m interface{}, template interface{}) interface{}
func ConvertToMap ¶
func ConvertToMap(s interface{}) map[string]interface{}
func ConvertToSlice ¶
func ConvertToSlice(m interface{}, template []interface{}) []interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.