Help us shape the future of Go! Take the 2026 Go Developer Survey

archiveutil

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasGzipPrefix

func HasGzipPrefix(header []byte) bool

HasGzipPrefix reports whether header starts with the gzip magic bytes.

func HasZstdPrefix

func HasZstdPrefix(header []byte) bool

HasZstdPrefix reports whether header starts with a zstd frame magic or a complete skippable frame header. It does not validate the frame contents.

func IsArchive

func IsArchive(header []byte) bool

IsArchive reports whether header looks like a gzip, bzip2, xz, zstd, or uncompressed tar archive. It does not validate the compressed contents.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL