logfmt

package
v0.0.0-...-37c9c3e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte, allowEmptyKey, keepGarbage bool, eachPair Visitor) bool

Parse does a best effort parsing of logfmt entries. If `allowEmptyKey`, it will parse ` =value` as `""=value`, where empty string is a valid key.

Types

type Visitor

type Visitor func(key, val []byte) (more bool)

Visitor receives key/value pairs as they are parse, returns `false` if it wishes to abort the parsing.

Jump to

Keyboard shortcuts

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