zaputil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AArray

type AArray[A zapcore.ArrayMarshaler] []A

A provides a generic implementation of zapcore.ArrayMarshaler for slices whose elements are themselves ArrayMarshalers.

func (AArray[A]) MarshalLogArray

func (aa AArray[A]) MarshalLogArray(ae zapcore.ArrayEncoder) error

type AMap

type AMap[A zapcore.ArrayMarshaler] map[string]A

AMap provides a generic implementation of zapcore.ArrayMarshaler for slices whose elements are ObjectMarshalers.

func (AMap[A]) MarshalLogObject

func (am AMap[A]) MarshalLogObject(oe zapcore.ObjectEncoder) error

type IArray

type IArray[N constraints.Signed] []N

array encoders

func (IArray[N]) MarshalLogArray

func (in IArray[N]) MarshalLogArray(ae zapcore.ArrayEncoder) error

type IMap

type IMap[N constraints.Signed] map[string]N

IMap provides a generic implementation of zapcore.ObjectMarshaler for maps from strings to signed ints.

func (IMap[T]) MarshalLogObject

func (im IMap[T]) MarshalLogObject(oe zapcore.ObjectEncoder) error

type OArray

type OArray[O zapcore.ObjectMarshaler] []O

OArray provides a generic implementation of zapcore.ObjectMarshaler for slices whose elements are ObjectMarshalers.

func (OArray[T]) MarshalLogArray

func (oa OArray[T]) MarshalLogArray(ae zapcore.ArrayEncoder) error

type OMap

type OMap[O zapcore.ObjectMarshaler] map[string]O

OMap provides a generic implementation of zapcore.ObjectMarshaler for a map from strings to elements which are themselves ObjectMarshalers.

func (OMap[T]) MarshalLogObject

func (om OMap[T]) MarshalLogObject(oe zapcore.ObjectEncoder) error

type UArray

type UArray[U constraints.Unsigned] []U

array encoders

func (UArray[U]) MarshalLogArray

func (ua UArray[U]) MarshalLogArray(ae zapcore.ArrayEncoder) error

type UMap

type UMap[U constraints.Unsigned] map[string]U

UMap provides a generic implementation of zapcore.ObjectMarshaler for maps from stringst o unsigned ints.

func (UMap[T]) MarshalLogObject

func (um UMap[T]) MarshalLogObject(oe zapcore.ObjectEncoder) error

Jump to

Keyboard shortcuts

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