Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressFS ¶
CompressFS is a simple tools to read file from embed.FS and gzip compress file only support ReadFile method, not support Open method
var YsoResourceFS *CompressFS
func NewCompressFS ¶
func NewCompressFS(fs *embed.FS, compressDirs map[string]string) *CompressFS
NewCompressFS create a CompressFS instance fs is embed.FS instance, compressDirs is a map, key is virtual dir, value is compress file name
Click to show internal directories.
Click to hide internal directories.