unwrap

package
v3.10.5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(val interface{}, opts ...Option) *unwrap

Types

type Option

type Option func(*Options)

Option func signature

func Codec added in v3.9.14

func Codec(c codec.Codec) Option

Codec option automatic marshal arg via specified codec and write it to log

func Indent added in v3.9.14

func Indent(f string) Option

Indent option specify indent level

func Methods added in v3.9.14

func Methods(b bool) Option

Methods option toggles fmt.Stringer methods

func Tagged added in v3.9.14

func Tagged(b bool) Option

Tagged option toggles output only logger:"take" fields

type Options

type Options struct {
	Codec   codec.Codec
	Indent  string
	Methods bool
	Tagged  bool
}

Options struct

func NewOptions

func NewOptions(opts ...Option) Options

NewOptions creates new Options struct via provided args

Jump to

Keyboard shortcuts

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