Encoding and decoding for ASCII separated values.
Go to file
2024-08-31 22:56:24 -04:00
asv_test.go Add some tests 2024-08-31 22:54:54 -04:00
asv.go Fix escape sequence parsing 2024-08-31 22:54:38 -04:00
go.mod Initial commit 2024-08-31 02:31:29 -04:00
LICENSE Add LICENSE 2024-08-31 02:32:29 -04:00
README.md Add godoc badge 2024-08-31 22:56:24 -04:00

ASV

Go Reference

This module allows encoding and decoding data using ASV (ASCII-separated values). Data is organized into a hierarchy of files, groups, records, and units, separated by ASCII FS, GS, RS, and US respectively.

An example stream of data...

record[US]one[RS]record[US]two[GS]record one in group two[FS]record one in file two

... Is parsed into:

Collection {
	File {
		Group {
			Record {
				"record",
				"one",
			},
			Record {
				"record",
				"two",
			},
		},
		Group {
			Record {
				"record one in group two",
			},
		},
	},
	File {
		Group {
			Record {
				"record one in file two",
			},
		},	
	},
}

Although it uses ASCII control characters, this module operates on UTF-8 text.