You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
563 B

package main
import (
"XProxy/next/assets"
. "XProxy/next/logger"
"os"
)
const gzSample = "/root/XProxy/LICENSE.gz"
const xzSample = "/root/XProxy/LICENSE.xz"
const bz2Sample = "/root/XProxy/LICENSE.bz2"
func main() {
//raw, _ := os.ReadFile(gzSample)
//raw, _ := os.ReadFile(bz2Sample)
raw, _ := os.ReadFile(xzSample)
Logger.Debugf("data len -> %d", len(raw))
ret, err := assets.Extract(raw)
if err != nil {
Logger.Debugf("extract error -> %v", err)
}
Logger.Debugf("extract ok -> len = %d", len(ret))
//os.WriteFile("demo.data", ret, 0777)
}