dump

package
v0.0.0-...-11052b5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynamicMessage

func DynamicMessage(log Logger, name, output string, msg *dynamic.Message)

DynamicMessage dumps dynamic.Message.

func PrintStruct

func PrintStruct(log Logger, title string, i interface{})

Types

type Logger

type Logger interface {
	Infof(string, ...interface{})
	Errorf(string, ...interface{})
	Debugf(string, ...interface{})
	Debug(...interface{})
}

type Pair

type Pair struct {
	Name  string
	Value interface{}
}

Pair is a name, value pair.

type Pairs

type Pairs []Pair

func (Pairs) Dump

func (p Pairs) Dump(log Logger)

Dump dumps list of pairs with Logger.

Jump to

Keyboard shortcuts

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