Discover Packages
github.com/TroutSoftware/x-tools/gordian
internal
txtar
package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Jul 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Evolution of golang.org/x/tools/txtar, handling encoding for binary data
Format returns the serialized form of an Archive.
It is assumed that the Archive data structure is well-formed:
a.Comment and all a.File[i].Data contain no file marker lines,
and all a.File[i].Name is non-empty.
type Archive struct {
Files []File
}
An Archive is a collection of files.
Parse parses the serialized form of an Archive.
The returned Archive holds slices of data.
ParseFile parses the named file as an archive.
Get return file at name
This panics if the file does not exist, and should only be used in tests
A File is a single file in an archive.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.