Documentation
¶
Overview ¶
Modified from https://github.com/blakesmith/ar for go:1.20
Index ¶
- Constants
- func Pack(srcDir string, dstDir string, filename string) (err error)
- func UnAr(reader io.Reader, dstDir string) (err error)
- func UnTar(reader io.Reader, dstDir string) (err error)
- func UnTarGz(reader io.Reader, dstDir string) error
- func UnZip(filePath string, dstDir string) (err error)
- func Unpack(filePath string, dstDir string, fileType string, unpackedName string) (err error)
- type Header
- type Reader
Constants ¶
View Source
const ( HEADER_BYTE_SIZE = 60 GLOBAL_HEADER = "!<arch>\n" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewArReader ¶
Copies read data to r. Strips the global ar header.
Click to show internal directories.
Click to hide internal directories.