Documentation
¶
Index ¶
- Variables
- func IsGzipFile(r io.Reader) (bool, error)
- func IsTarFile(r io.ReaderAt) bool
- func IsZipFile(r io.ReaderAt) bool
- func ListFiles(r io.Reader, opts ...Option) ([]fs.FileInfo, error)
- func UntarFiles(ctx context.Context, r io.Reader, fn func(Reader) error, opts ...Option) error
- func UnzipFiles(ctx context.Context, r io.Reader, fn func(Reader) error, opts ...Option) error
- func UnzipJSON[T any](ctx context.Context, r io.Reader, opts ...Option) iter.Seq2[T, error]
- type Option
- type Reader
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TarMagicHeader = []byte{0x75, 0x73, 0x74, 0x61, 0x72} TarMagicOffset = 257 )
View Source
var GzipMagicHeader = []byte{0x1f, 0x8b}
View Source
var ZipMagicHeader = []byte{0x50, 0x4b, 0x03, 0x04}
Functions ¶
func UntarFiles ¶
func UnzipFiles ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.