modulepackage
0.0.0-20221218020548-25d0939ced5d
Repository: https://github.com/zalgonoise/attr.git
Documentation: pkg.go.dev
# README
attr
the Go key-value data structure library
# Functions
Complex is a generic function to create Attr attributes based on complex values.
Float is a generic function to create Attr attributes based on float values.
Int is a generic function to create Attr attributes based on int values.
No description provided by the author
New is a generic function to create an Attr
Using a generic approach allows the Attr.WithValue method to be scoped with certain constraints for specific applications.
Ptr is a generic function to create an Attr from a pointer value
Using a generic approach allows the Attr.WithValue method to be scoped with certain constraints for specific applications.
String is a generic function to create Attr attributes based on string values.
Uint is a generic function to create Attr attributes based on uint values.
# Interfaces
Attr interface describes the behavior that a serializable attribute should have.
BoolRestriction is a constraint that only accepts booleans.
CharRestriction is a constraint that only accepts stringifiable tokens.
ComplexRestriction is a constraint that only accepts complex values.
FloatRestriction is a constraint that only accepts float values.
IntRestriction is a constraint that only accepts int values.
NumberRestriction is a constraint that only accepts number values, as a combination of other constraints.
TextRestriction is a constraint that only accepts text values, as a combination of other constraints.
TimeRestriction is a constraint that only accepts time.Time values.
UintRestriction is a constraint that only accepts uint values.
# Type aliases
No description provided by the author