Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.
/ pack Public archive

用于将静态资源打包成一个 Go 文件

License

Notifications You must be signed in to change notification settings

issue9/pack

Repository files navigation

pack Test Status codecov go.dev reference license

用于将数据对象打包成一个 Go 文件

type Object{
    // fields
}

o := &Object{}

// 在 ./static.go 文件生成 Obj 常量,其内容为编码后的 o 内容。
// 该内容可通过 Unpack 解码。
pack.File(o, "static", "Obj", "NOT EDIT", "","./static.go")

安装

go get github.com/issue9/pack

版权

本项目采用 MIT 开源授权许可证,完整的授权说明可在 LICENSE 文件中找到。