attribute

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 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

func AsBoolSlice(v interface{}) []bool

AsBoolSlice converts a bool array into a slice into with same elements as array.

func AsFloat64Slice

func AsFloat64Slice(v interface{}) []float64

AsFloat64Slice converts a float64 array into a slice into with same elements as array.

func AsInt64Slice

func AsInt64Slice(v interface{}) []int64

AsInt64Slice converts an int64 array into a slice into with same elements as array.

func AsStringSlice

func AsStringSlice(v interface{}) []string

AsStringSlice converts a string array into a slice into with same elements as array.

func BoolSliceValue

func BoolSliceValue(v []bool) interface{}

BoolSliceValue converts a bool slice into an array with same elements as slice.

func Float64SliceValue

func Float64SliceValue(v []float64) interface{}

Float64SliceValue converts a float64 slice into an array with same elements as slice.

func Int64SliceValue

func Int64SliceValue(v []int64) interface{}

Int64SliceValue converts an int64 slice into an array with same elements as slice.

func StringSliceValue

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