Documentation ¶ Index ¶ type File func GetFiles(fs embed.FS, params GetFilesParams) []File type FilePath func (f FilePath) Base() FilePath func (f FilePath) Dir() FilePath func (f FilePath) Join(paths ...string) FilePath func (f FilePath) ToString() string type GetFilesParams type RegExp type TemplateExpression Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type File ¶ added in v0.20.0 type File struct { Relpath FilePath Name string Extension string Content string } func GetFiles ¶ added in v0.20.0 func GetFiles(fs embed.FS, params GetFilesParams) []File type FilePath ¶ type FilePath string func (FilePath) Base ¶ func (f FilePath) Base() FilePath func (FilePath) Dir ¶ added in v0.16.0 func (f FilePath) Dir() FilePath func (FilePath) Join ¶ added in v0.16.0 func (f FilePath) Join(paths ...string) FilePath func (FilePath) ToString ¶ func (f FilePath) ToString() string type GetFilesParams ¶ added in v0.20.0 type GetFilesParams struct { EmbeddedFilerName string // required param RootFolder FilePath // to exclude from RelPath IsNotRecursive bool AllowedExtensions []string // contains filtered or unexported fields } type RegExp ¶ type RegExp string type TemplateExpression ¶ type TemplateExpression string Source Files ¶ View all Source files types.go Click to show internal directories. Click to hide internal directories.