Documentation
¶
Overview ¶
From: https://github.com/wux1an/wxapkg/blob/main/util/beautify.go
Index ¶
- Constants
- Variables
- func CacheCheckDir() func(path string) error
- func Format(ext string, data []byte) []byte
- func GetWXAppletPath() string
- func PrettyHtml(data []byte) []byte
- func PrettyJavaScript(data []byte) []byte
- func PrettyJson(data []byte) []byte
- func SafetyGetData(data []byte, offset, size uint32) []byte
- func Unpack(file, output string, format bool, printf func(format string, a ...interface{})) error
- type FileIndex
- type Header
Constants ¶
View Source
const ( WXAPkgMagic = 0xBE WXAPkgEndMagic = 0xED )
Variables ¶
View Source
var (
ErrInvalidWXAPkg = errors.New("invalid wxapkg file")
)
Functions ¶
func CacheCheckDir ¶
func GetWXAppletPath ¶
func GetWXAppletPath() string
func PrettyHtml ¶
func PrettyJavaScript ¶
func PrettyJson ¶
func SafetyGetData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.