Documentation ¶
Index ¶
- func Asset(toFile string, bytesData map[string][]byte) (int, error)
- func Files(files []string, dirs []string) map[string][]byte
- func Gzip(data []byte) ([]byte, error)
- func ReadAll(r io.Reader, capacity int64) (b []byte, err error)
- func Unasset(fileStrings map[string]string) error
- func Ungzip(data []byte) ([]byte, error)
- type GzipPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GzipPool ¶
type GzipPool struct {
// contains filtered or unexported fields
}
GzipPool manages a pool of gzip.Writer. The pool uses sync.Pool internally.
func (*GzipPool) GetReader ¶
GetReader returns gzip.Reader from the pool, or creates a new one if the pool is empty.
func (*GzipPool) GetWriter ¶
GetWriter returns gzip.Writer from the pool, or creates a new one with gzip.BestCompression if the pool is empty.
Click to show internal directories.
Click to hide internal directories.