Encoding and decoding for ASCII separated values.
Go to file
2024-08-31 02:31:29 -04:00
asv.go Initial commit 2024-08-31 02:31:29 -04:00
go.mod Initial commit 2024-08-31 02:31:29 -04:00
README.md Initial commit 2024-08-31 02:31:29 -04:00

ASV

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.