Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator interface {
// Create a directory.
MkdirAll(dir string) error
// Create a file into the directory dir (can be empty) with the data.
// This method can be called concurrently an many many time.
Create(dir, name string, data []byte) error
}
Used to write asset web file and generated file.
type Option ¶
type Option struct {
// The regions sources.
In fs.FS
// The output. Must be defined.
Out Creator
// Disable bar print
NoBar bool
// The max number of CPU who can be used.
// If less 0, it will the the number of CPU.
CPU int
// Log the error. Is not set, never output.
Error func(error)
}
All the options for one generation
type OsCreator ¶
type OsCreator struct {
Root string
sync.Mutex // used to limit the number of concurent open file.
}
A Creator that write directory and file into the operating system into the root.
Click to show internal directories.
Click to hide internal directories.