File: README

package info (click to toggle)
golang-go.cypherpunks-recfile 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: makefile: 5
file content (17 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GNU recutils'es recfile parser/writer on pure Go.
recfiles are human-editable, plaintext databases. This library allows
you to read records and their fields from it. Look for cmd/gorecsel as
an example usage.

* iterate through the records and their fields
* ignore comments
* support continuation lines (\$) and multilines (^+)

Limitations:
* leading spaces in the first line of the value are ignored
* trailing backslash at the end of lines is followed by space

Also there is go.cypherpunks.su/recfile/v2/slog.NewRecfileHandler log/slog
handler to write your logs in recfile format directly.

It is free software: see the file COPYING for copying conditions.