utils

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBase64Gzip

func IsBase64Gzip(val []byte) bool

IsBase64Gzip checks the request body up to the `gunzip` part.

Some important payloads can be listed via base64 -d < foo1 | gunzip | tar t|head -20

func Untar

func Untar(r io.Reader, dest string) error

Untar extracts a tar archive to the specified destination.

func UntarGz

func UntarGz(tarGzFile, dest string) error

UntarGz extracts a tar.gz file to the specified destination.

func UnzipFile

func UnzipFile(zipFile, dest string) error

UnzipFile extracts a zip file to the specified destination

Types

This section is empty.

Jump to

Keyboard shortcuts

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