mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-17 05:45:03 +01:00
17 lines
323 B
Go
17 lines
323 B
Go
//go:build !static
|
|
// +build !static
|
|
|
|
package ctrl
|
|
|
|
import (
|
|
"github.com/google/brotli/go/cbrotli"
|
|
)
|
|
|
|
func compressGzip(content []byte, quality int) []byte {
|
|
return []byte{}
|
|
}
|
|
|
|
func compressBr(content []byte, quality int) []byte {
|
|
out, _ := cbrotli.Encode(content, cbrotli.WriterOptions{Quality: quality})
|
|
return out
|
|
}
|