Documentation
¶
Index ¶
- func AnyToJson(v any) []byte
- func AnyToJsonString(v any) string
- func Code(err error) codes.Code
- func GetCaller(skip int) uintptr
- func GetCallerFrame(pc uintptr) runtime.Frame
- func In[T comparable](target T, sets ...T) bool
- func NotFound(err error) bool
- func NotIn[T comparable](target T, sets ...T) bool
- func Zero[T any]() T
- func ZeroFromValue[T any](t T) T
- type Chain
- type Heap
- type Interceptor
- type InterceptorFunc
- type Nexter
- type Status
- type SyncMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToJsonString ¶
func GetCallerFrame ¶
func In ¶
func In[T comparable](target T, sets ...T) bool
func NotIn ¶
func NotIn[T comparable](target T, sets ...T) bool
func ZeroFromValue ¶
func ZeroFromValue[T any](t T) T
Types ¶
type Chain ¶
type Chain[T any] []Interceptor[T]
type Interceptor ¶
type InterceptorFunc ¶
type Nexter ¶
type Nexter[T any] struct { // contains filtered or unexported fields }
func (Nexter[T]) LastHandler ¶
func (n Nexter[T]) LastHandler() Interceptor[T]
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) MarshalJSON ¶
type SyncMap ¶
type SyncMap[K comparable, V any] struct { // contains filtered or unexported fields }
func (*SyncMap[K, V]) LoadOrStore ¶
func (sm *SyncMap[K, V]) LoadOrStore(k K, v V) V
Directories
¶
Path | Synopsis |
---|---|
Package semaphore provides a weighted semaphore implementation.
|
Package semaphore provides a weighted semaphore implementation. |
Click to show internal directories.
Click to hide internal directories.