Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 18-Aug-2021 | - | |||
.gitignore | H A D | 18-Aug-2021 | 9 | |||
CHANGELOG.md | H A D | 18-Aug-2021 | 1.5 KiB | |||
LICENSE | H A D | 18-Aug-2021 | 1.1 KiB | |||
README.md | H A D | 18-Aug-2021 | 1.7 KiB | |||
decode-bench_test.go | H A D | 18-Aug-2021 | 601 | |||
decode.go | H A D | 18-Aug-2021 | 4.9 KiB | |||
decode_test.go | H A D | 18-Aug-2021 | 4.1 KiB | |||
doc.go | H A D | 18-Aug-2021 | 336 | |||
encode.go | H A D | 18-Aug-2021 | 7.8 KiB | |||
encode_internal_test.go | H A D | 18-Aug-2021 | 6.2 KiB | |||
encode_test.go | H A D | 18-Aug-2021 | 7.2 KiB | |||
example_test.go | H A D | 18-Aug-2021 | 1 KiB | |||
go.mod | H A D | 18-Aug-2021 | 44 | |||
jsonstring.go | H A D | 18-Aug-2021 | 5.1 KiB |
README.md
1[![Go Reference](https://pkg.go.dev/badge/github.com/go-logfmt/logfmt.svg)](https://pkg.go.dev/github.com/go-logfmt/logfmt) 2[![Go Report Card](https://goreportcard.com/badge/go-logfmt/logfmt)](https://goreportcard.com/report/go-logfmt/logfmt) 3[![Github Actions](https://github.com/go-logfmt/logfmt/actions/workflows/test.yml/badge.svg)](https://github.com/go-logfmt/logfmt/actions/workflows/test.yml) 4[![Coverage Status](https://coveralls.io/repos/github/go-logfmt/logfmt/badge.svg?branch=master)](https://coveralls.io/github/go-logfmt/logfmt?branch=master) 5 6# logfmt 7 8Package logfmt implements utilities to marshal and unmarshal data in the [logfmt 9format](https://brandur.org/logfmt). It provides an API similar to 10[encoding/json](http://golang.org/pkg/encoding/json/) and 11[encoding/xml](http://golang.org/pkg/encoding/xml/). 12 13The logfmt format was first documented by Brandur Leach in [this 14article](https://brandur.org/logfmt). The format has not been formally 15standardized. The most authoritative public specification to date has been the 16documentation of a Go Language [package](http://godoc.org/github.com/kr/logfmt) 17written by Blake Mizerany and Keith Rarick. 18 19## Goals 20 21This project attempts to conform as closely as possible to the prior art, while 22also removing ambiguity where necessary to provide well behaved encoder and 23decoder implementations. 24 25## Non-goals 26 27This project does not attempt to formally standardize the logfmt format. In the 28event that logfmt is standardized this project would take conforming to the 29standard as a goal. 30 31## Versioning 32 33Package logfmt publishes releases via [semver](http://semver.org/) compatible Git tags prefixed with a single 'v'. 34