
logfmt
This module allows to encode a list of key/value pairs in logfmt format.
Example
package main
import (
"bytes"
"fmt"
"github.com/arnumina/logfmt"
)
func main() {
buf := bytes.Buffer{}
logfmt.Encode(&buf, "year", 2020, "month", "July", "Tuesday", true)
fmt.Println(buf.String())
}
year=2020 month="July" Tuesday=true
Link
Copyright (c) 2020 Institut National de l'Audiovisuel