Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreprocessingEmbed ¶
type PreprocessingEmbed struct { *embed.FS EnableCache bool // contains filtered or unexported fields }
PreprocessingEmbed is a simple tools to read file from embed.FS and gzip compress file only support ReadFile method, not support Open method
func NewEmptyPreprocessingEmbed ¶
func NewEmptyPreprocessingEmbed() *PreprocessingEmbed
func NewPreprocessingEmbed ¶
NewPreprocessingEmbed 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.