Documentation ¶
Overview ¶
Package attribute provide several helper functions for some commonly used logic of processing attributes.
Index ¶
- func AsBoolSlice(v interface{}) []bool
- func AsFloat64Slice(v interface{}) []float64
- func AsInt64Slice(v interface{}) []int64
- func AsStringSlice(v interface{}) []string
- func BoolSliceValue(v []bool) interface{}
- func Float64SliceValue(v []float64) interface{}
- func Int64SliceValue(v []int64) interface{}
- func StringSliceValue(v []string) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsBoolSlice ¶ added in v1.14.0
func AsBoolSlice(v interface{}) []bool
AsBoolSlice converts a bool array into a slice into with same elements as array.
func AsFloat64Slice ¶ added in v1.14.0
func AsFloat64Slice(v interface{}) []float64
AsFloat64Slice converts a float64 array into a slice into with same elements as array.
func AsInt64Slice ¶ added in v1.14.0
func AsInt64Slice(v interface{}) []int64
AsInt64Slice converts an int64 array into a slice into with same elements as array.
func AsStringSlice ¶ added in v1.14.0
func AsStringSlice(v interface{}) []string
AsStringSlice converts a string array into a slice into with same elements as array.
func BoolSliceValue ¶ added in v1.14.0
func BoolSliceValue(v []bool) interface{}
BoolSliceValue converts a bool slice into an array with same elements as slice.
func Float64SliceValue ¶ added in v1.14.0
func Float64SliceValue(v []float64) interface{}
Float64SliceValue converts a float64 slice into an array with same elements as slice.
func Int64SliceValue ¶ added in v1.14.0
func Int64SliceValue(v []int64) interface{}
Int64SliceValue converts an int64 slice into an array with same elements as slice.
func StringSliceValue ¶ added in v1.14.0
func StringSliceValue(v []string) interface{}
StringSliceValue converts a string slice into an array with same elements as slice.
Types ¶
This section is empty.