compress

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

package compress ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(algo string, level int, in []byte) []byte

Compress ..

func Decompress

func Decompress(algo string, in []byte) []byte

Decompress ...

func GetFileAlgo

func GetFileAlgo(filename string) string

GetFileAlgo ...

func GetFileExtension

func GetFileExtension(algo string) string

GetFileExtension ...

func GetFileScanner

func GetFileScanner(name string) (s *bufio.Scanner, err error)

GetFileScanner ...

func GetReader

func GetReader(name string) (io.Reader, error)

GetReader ...

func ReadFile

func ReadFile(name string) ([]byte, error)

ReadFile ...

func WriteFile

func WriteFile(name string, data []byte, perm os.FileMode, level int) error

WriteFile ...

func WriteTransportCompressedPage

func WriteTransportCompressedPage(page string, r http.ResponseWriter, q *http.Request, tryCompress bool)

WriteTransportCompressedPage ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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