Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentClass ¶
type ContentClass string
const ( ContentClassLeaf ContentClass = "leaf" ContentClassBranch ContentClass = "branch" ContentClassFile ContentClass = "zfile" // Sort below ContentClassContent ContentClass = "zcontent" )
type DirNameOnlyFileInfo ¶
type DirNameOnlyFileInfo struct {
// contains filtered or unexported fields
}
func NewDirNameOnlyFI ¶
func NewDirNameOnlyFI(name string, modTime time.Time) *DirNameOnlyFileInfo
func (*DirNameOnlyFileInfo) IsDir ¶
func (fi *DirNameOnlyFileInfo) IsDir() bool
func (*DirNameOnlyFileInfo) ModTime ¶
func (fi *DirNameOnlyFileInfo) ModTime() time.Time
func (*DirNameOnlyFileInfo) Mode ¶
func (fi *DirNameOnlyFileInfo) Mode() os.FileMode
func (*DirNameOnlyFileInfo) Name ¶
func (fi *DirNameOnlyFileInfo) Name() string
func (*DirNameOnlyFileInfo) Size ¶
func (fi *DirNameOnlyFileInfo) Size() int64
func (*DirNameOnlyFileInfo) Sys ¶
func (fi *DirNameOnlyFileInfo) Sys() any
type FileMeta ¶
type FileMeta struct { Name string Filename string Path string PathWalk string OriginalFilename string BaseDir string SourceRoot string MountRoot string Module string Weight int IsOrdered bool IsSymlink bool IsRootFile bool IsProject bool Watch bool Classifier ContentClass SkipDir bool Lang string TranslationBaseName string TranslationBaseNameWithExt string Translations []string Fs afero.Fs OpenFunc func() (afero.File, error) JoinStatFunc func(name string) (FileMetaInfo, error) }
func NewFileMeta ¶
func NewFileMeta() *FileMeta
type FileMetaInfo ¶
func DecorateFileInfo ¶
func NewFileMetaInfo ¶
func NewFileMetaInfo(fi os.FileInfo, m *FileMeta) FileMetaInfo
type RootMapping ¶
type RootMapping struct { // The virtual mount. From string // The source directory or file. To string // The base of To. May be empty if an // absolute path was provided. ToBasedir string // Whether this is a mount in the main project. IsProject bool Meta *FileMeta // File metadata (lang etc.) Fi FileMetaInfo // contains filtered or unexported fields }
RootMapping describes a virtual file or directory mount.
func (RootMapping) Filename ¶
func (r RootMapping) Filename(name string) string
Click to show internal directories.
Click to hide internal directories.