squish

package module
v0.0.0-...-40e3d21 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Unlicense Imports: 4 Imported by: 5

README

squish

`import "git.tcp.direct/kayos/common/squish"`

Usage

func B64d
func B64d(str string) (data []byte)

B64d decodes the given string into the original slice of bytes. Do note that this is for non critical tasks, it has no error handling for purposes of clean code.

func B64e
func B64e(cytes []byte) (data string)

B64e encodes the given slice of bytes into base64 standard encoding.

func Gunzip
func Gunzip(data []byte) ([]byte, error)

Gunzip decompresses a gzip compressed slice of bytes.

func Gzip
func Gzip(data []byte) ([]byte, error)

Gzip compresses as slice of bytes using gzip compression.

func UnpackStr
func UnpackStr(encoded string) string

UnpackStr UNsafely unpacks (usually banners) that have been base64'd and then gzip'd.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B64d

func B64d(str string) (data []byte)

B64d decodes the given string into the original slice of bytes. Do note that this is for non critical tasks, it has no error handling for purposes of clean code.

func B64e

func B64e(cytes []byte) (data string)

B64e encodes the given slice of bytes into base64 standard encoding.

func Gunzip

func Gunzip(data []byte) ([]byte, error)

Gunzip decompresses a gzip compressed slice of bytes.

func Gzip

func Gzip(data []byte) ([]byte, error)

Gzip compresses as slice of bytes using gzip compression.

func UnpackStr

func UnpackStr(encoded string) string

UnpackStr UNsafely unpacks (usually banners) that have been base64'd and then gzip'd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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