Documentation
¶
Index ¶
- func Get[T any](box *Box) T
- func GetOrDefault[T any](box *Box, defaultValue T) T
- func GetPath[T any](box *Box, path ...string) T
- type Box
- func (self *Box) Deadline() (deadline time.Time, ok bool)
- func (self *Box) Done() <-chan struct{}
- func (self *Box) Err() error
- func (self *Box) Fork() *Box
- func (self *Box) Inject(handler any) (func() (any, error), error)
- func (self *Box) Items() iter.Seq2[string, any]
- func (self *Box) Keys() iter.Seq[string]
- func (self *Box) Len() int
- func (self *Box) MarshalJSON() ([]byte, error)
- func (self *Box) Merge(box *Box)
- func (self *Box) Put(values ...any)
- func (self *Box) PutByKey(key string, value any)
- func (self *Box) String() string
- func (self *Box) Value(key any) any
- func (self *Box) Values() iter.Seq[any]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrDefault ¶
Types ¶
type Box ¶
func (*Box) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.