Categorygithub.com/kr/logfmt
modulepackage
0.0.0-20210122060352-19f9bcb100e6
Repository: https://github.com/kr/logfmt.git
Documentation: pkg.go.dev

# README

Go package for parsing (and, eventually, generating) log lines in the logfmt style.

See http://godoc.org/github.com/kr/logfmt for format, and other documentation and examples.

Copyright (C) 2013 Keith Rarick, Blake Mizerany

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Functions

No description provided by the author
Unmarshal parses the logfmt encoding data and stores the result in the value pointed to by v.

# Variables

No description provided by the author

# Structs

An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
StructHandler unmarshals logfmt into a struct.
An UnmarshalTypeError describes a logfmt value that was not appropriate for a value of a specific Go type.

# Interfaces

Handler is the interface implemented by objects that accept logfmt key-value pairs.

# Type aliases

The HandlerFunc type is an adapter to allow the use of ordinary functions as logfmt handlers.