Documentation
¶
Overview ¶
package compress ...
Index ¶
- func Compress(algo string, level int, in []byte) []byte
- func Decompress(algo string, in []byte) []byte
- func GetFileAlgo(filename string) string
- func GetFileExtension(algo string) string
- func GetFileScanner(name string) (s *bufio.Scanner, err error)
- func GetReader(name string) (io.Reader, error)
- func ReadFile(name string) ([]byte, error)
- func WriteFile(name string, data []byte, perm os.FileMode, level int) error
- func WriteTransportCompressedPage(page string, r http.ResponseWriter, q *http.Request, tryCompress bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileScanner ¶
GetFileScanner ...
func WriteTransportCompressedPage ¶
func WriteTransportCompressedPage(page string, r http.ResponseWriter, q *http.Request, tryCompress bool)
WriteTransportCompressedPage ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.