attribute

package
v1.15.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package attribute provide several helper functions for some commonly used logic of processing attributes.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL