Documentation
¶
Index ¶
- func ReadAll(c ctx.C, r io.Reader, close func() error) ([]byte, error)
- func Stack(above, max int) []string
- type MapEntry
- type OrderedMap
- func (this *OrderedMap[K, V]) Delete(key K) MapEntry[V]
- func (this OrderedMap[K, V]) Get(key K) MapEntry[V]
- func (this OrderedMap[K, V]) Keys() []K
- func (this OrderedMap[K, V]) Len() int
- func (this *OrderedMap[K, V]) Put(key K, value V) MapEntry[V]
- func (this OrderedMap[K, V]) Range(f func(K, V) error) error
- func (this OrderedMap[K, V]) Values() []V
- type Pair
- type StackFrame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OrderedMap ¶
type OrderedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewOrderedMap ¶
func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V]
func (*OrderedMap[K, V]) Delete ¶
func (this *OrderedMap[K, V]) Delete(key K) MapEntry[V]
remove the pair and forget about the order
func (OrderedMap[K, V]) Get ¶
func (this OrderedMap[K, V]) Get(key K) MapEntry[V]
func (OrderedMap[K, V]) Keys ¶
func (this OrderedMap[K, V]) Keys() []K
func (OrderedMap[K, V]) Len ¶
func (this OrderedMap[K, V]) Len() int
func (*OrderedMap[K, V]) Put ¶
func (this *OrderedMap[K, V]) Put(key K, value V) MapEntry[V]
func (OrderedMap[K, V]) Range ¶
func (this OrderedMap[K, V]) Range(f func(K, V) error) error
func (OrderedMap[K, V]) Values ¶
func (this OrderedMap[K, V]) Values() []V
type StackFrame ¶
func Caller ¶
func Caller(above int) StackFrame
Returns the StackFrame of the caller if above is zero.
func (StackFrame) AbsFile ¶
func (this StackFrame) AbsFile() string
convert --trimpath like `aize.io/monorepo/...` to full path based on go.mod content
func (StackFrame) FileLine ¶
func (this StackFrame) FileLine() string
func (StackFrame) FuncName ¶
func (this StackFrame) FuncName() string
func (StackFrame) Pkg ¶
func (this StackFrame) Pkg() string
func (StackFrame) ShortFunc ¶
func (this StackFrame) ShortFunc() string
return only the package.FuncName
Click to show internal directories.
Click to hide internal directories.