oattr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 无效的key
	ErrInvalidKVPairs = errors.New("invalid kv pairs")
)

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	// contains filtered or unexported fields
}

Attributes @Description:

func New

func New(kvs ...interface{}) *Attributes

New @Description: @param kvs @return *Attributes

func (*Attributes) Value

func (a *Attributes) Value(key interface{}) interface{}

Value @Description: @receiver a @param key @return interface{}

func (*Attributes) WithValues

func (a *Attributes) WithValues(kvs ...interface{}) *Attributes

WithValues @Description: @receiver a @param kvs @return *Attributes

Jump to

Keyboard shortcuts

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