attribute

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 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 AsSlice

func AsSlice[T bool | int64 | float64 | string](v any) []T

AsSlice convert an array into a slice into with same elements as array.

func SliceValue

func SliceValue[T bool | int64 | float64 | string](v []T) any

SliceValue convert a 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