Versions in this module Expand all Collapse all v1 v1.1.0 Nov 26, 2022 Changes in this version + const Reset + const VERSION + var FileAliases = map[string]string + func NewATimeGetter(colors bool, params *TimeParams) table.Getter + func NewCTimeGetter(colors bool, params *TimeParams) table.Getter + func NewFileNameGetter(colors bool, params *FileNameParams) table.Getter + func NewGroupGetter(colors bool) table.Getter + func NewMTimeGetter(colors bool, params *TimeParams) table.Getter + func NewModeGetter(colors bool) table.Getter + func NewOctalModeGetter(colors bool) table.Getter + func NewOwnerGetter(colors bool) table.Getter + func NewSizeGetter(colors bool, format SizeFormat) table.Getter + func Run(rawArgs []string) + func Strftime(tm *time.Time, fmt string) string + type ATimeGetter struct + func (f *ATimeGetter) Value(item any) (any, error) + func (f *ATimeGetter) ValueString(colName string, item any) (string, error) + type ATimeGetterPlain struct + func (f *ATimeGetterPlain) Value(item any) (any, error) + func (f *ATimeGetterPlain) ValueString(colName string, item any) (string, error) + type Application struct + Platform *lsplatform.LocalPlatform + PrimaryTimeColName string + QuotingStyle string + func NewApplication() *Application + func (app *Application) AddError(err error) + func (app *Application) Exit() + func (app *Application) ListDir(tableObj *table.Table, path string) + func (app *Application) ListDirList(tableSpec *table.TableSpec, pathList []string) + func (app *Application) ListFiles(tableObj *table.Table, parentDir string, infoList []*FileInfo, ...) + func (app *Application) PostParse(args *lsargs.Arguments) *table.TableSpec + func (app *Application) PrintErrors() + func (app *Application) WorkDir() string + type BlocksGetter struct + func (f *BlocksGetter) Format(item any, value any) (string, error) + func (f *BlocksGetter) Value(item any) (any, error) + func (f *BlocksGetter) ValueString(colName string, item any) (string, error) + type ByDirContentsCount ItemSorter + func (s ByDirContentsCount) Len() int + func (s ByDirContentsCount) Less(i, j int) bool + func (s ByDirContentsCount) Swap(i, j int) + type ByExtension ItemSorter + func (s ByExtension) Len() int + func (s ByExtension) Less(i, j int) bool + func (s ByExtension) Swap(i, j int) + type ByFileSize ItemSorter + func (s ByFileSize) Len() int + func (s ByFileSize) Less(i, j int) bool + func (s ByFileSize) Swap(i, j int) + type ByHardLinks ItemSorter + func (s ByHardLinks) Len() int + func (s ByHardLinks) Less(i, j int) bool + func (s ByHardLinks) Swap(i, j int) + type ByInode ItemSorter + func (s ByInode) Len() int + func (s ByInode) Less(i, j int) bool + func (s ByInode) Swap(i, j int) + type ByKind ItemSorter + func (s ByKind) Len() int + func (s ByKind) Less(i, j int) bool + func (s ByKind) Swap(i, j int) + type ByNameLength ItemSorter + func (s ByNameLength) Len() int + func (s ByNameLength) Less(i, j int) bool + func (s ByNameLength) Swap(i, j int) + type BySize ItemSorter + func (s BySize) Len() int + func (s BySize) Less(i, j int) bool + func (s BySize) Swap(i, j int) + type ByTime ItemSorter + func (s ByTime) Len() int + func (s ByTime) Less(i, j int) bool + func (s ByTime) Swap(i, j int) + type CTimeGetter struct + func (f *CTimeGetter) Value(item any) (any, error) + func (f *CTimeGetter) ValueString(colName string, item any) (string, error) + type CTimeGetterPlain struct + func (f *CTimeGetterPlain) Value(item any) (any, error) + func (f *CTimeGetterPlain) ValueString(colName string, item any) (string, error) + type DefaultSorter ItemSorter + func (s DefaultSorter) Len() int + func (s DefaultSorter) Less(i, j int) bool + func (s DefaultSorter) Swap(i, j int) + type DisplayItem struct + Display []string + Time *time.Time + type DisplayItemList []*DisplayItem + func (list DisplayItemList) Get(index int) []string + func (list DisplayItemList) Len() int + type ExprGetter struct + func NewExprGetter(colors bool, exprStr string) *ExprGetter + func (f *ExprGetter) Alignment() (table.Alignment, error) + func (f *ExprGetter) Format(item any, value any) (string, error) + func (f *ExprGetter) MustValueBool(info *FileInfo) bool + func (f *ExprGetter) Type() (reflect.Type, error) + func (f *ExprGetter) Value(item any) (any, error) + func (f *ExprGetter) ValueBool(info *FileInfo) (bool, error) + func (f *ExprGetter) ValueString(colName string, item any) (string, error) + type FileInfo struct + Basename string + CurDir string + Dir string + Ext string + IsAbs bool + Suffix string + func (info *FileInfo) DirAbs() string + func (info *FileInfo) Group() string + func (info *FileInfo) Owner() string + func (info *FileInfo) PathAbs() string + func (info *FileInfo) PathDisplay() string + func (info *FileInfo) Time(colName string) *time.Time + type FileInfoLow struct + func NewFileInfoLowFrom(fi fs.FileInfo) *FileInfoLow + func (fi *FileInfoLow) IsDir() bool + func (fi *FileInfoLow) ModTime() time.Time + func (fi *FileInfoLow) Mode() fs.FileMode + func (fi *FileInfoLow) Name() string + func (fi *FileInfoLow) Size() int64 + func (fi *FileInfoLow) Sys() any + type FileNameGetter struct + func (f *FileNameGetter) Format(item any, value any) (string, error) + func (f *FileNameGetter) Value(item any) (any, error) + func (f *FileNameGetter) ValueString(colName string, item any) (string, error) + type FileNameGetterPlain struct + func (f *FileNameGetterPlain) Format(item any, value any) (string, error) + func (f *FileNameGetterPlain) Value(item any) (any, error) + func (f *FileNameGetterPlain) ValueString(colName string, item any) (string, error) + type FileNameParams struct + type GroupGetter struct + func (f *GroupGetter) Format(item any, value any) (string, error) + func (f *GroupGetter) Value(item any) (any, error) + func (f *GroupGetter) ValueString(colName string, item any) (string, error) + type GroupGetterPlain struct + func (f *GroupGetterPlain) Format(item any, value any) (string, error) + func (f *GroupGetterPlain) Value(item any) (any, error) + func (f *GroupGetterPlain) ValueString(colName string, item any) (string, error) + type HardLinksGetter struct + func (f *HardLinksGetter) Format(item any, value any) (string, error) + func (f *HardLinksGetter) Value(item any) (any, error) + func (f *HardLinksGetter) ValueString(colName string, item any) (string, error) + type InodeGetter struct + func (f *InodeGetter) Format(item any, value any) (string, error) + func (f *InodeGetter) Value(item any) (any, error) + func (f *InodeGetter) ValueString(colName string, item any) (string, error) + type ItemSorter []*DisplayItem + type LinkInfo struct + func (link *LinkInfo) Dereference(source *FileInfo) *FileInfo + type MTimeGetter struct + func (f *MTimeGetter) Value(item any) (any, error) + func (f *MTimeGetter) ValueString(colName string, item any) (string, error) + type MTimeGetterPlain struct + func (f *MTimeGetterPlain) Value(item any) (any, error) + func (f *MTimeGetterPlain) ValueString(colName string, item any) (string, error) + type ModeGetter struct + func (f *ModeGetter) Format(item any, value any) (string, error) + func (f *ModeGetter) Value(item any) (any, error) + func (f *ModeGetter) ValueString(colName string, item any) (string, error) + type ModeGetterPlain struct + func (f *ModeGetterPlain) Format(item any, value any) (string, error) + func (f *ModeGetterPlain) Value(item any) (any, error) + func (f *ModeGetterPlain) ValueString(colName string, item any) (string, error) + type OctModeGetter struct + func (f *OctModeGetter) Format(item any, value any) (string, error) + func (f *OctModeGetter) Value(item any) (any, error) + func (f *OctModeGetter) ValueString(colName string, item any) (string, error) + type OwnerGetter struct + func (f *OwnerGetter) Format(item any, value any) (string, error) + func (f *OwnerGetter) Value(item any) (any, error) + func (f *OwnerGetter) ValueString(colName string, item any) (string, error) + type OwnerGetterPlain struct + func (f *OwnerGetterPlain) Format(item any, value any) (string, error) + func (f *OwnerGetterPlain) Value(item any) (any, error) + func (f *OwnerGetterPlain) ValueString(colName string, item any) (string, error) + type SizeGetter struct + func (f *SizeGetter) Format(item any, value any) (string, error) + func (f *SizeGetter) Value(item any) (any, error) + func (f *SizeGetter) ValueString(colName string, item any) (string, error) + type SizeGetterPlain struct + func (f *SizeGetterPlain) Format(item any, value any) (string, error) + func (f *SizeGetterPlain) Value(item any) (any, error) + func (f *SizeGetterPlain) ValueString(colName string, item any) (string, error) + type TimeGetter struct + func (f *TimeGetter) Format(item any, value any) (string, error) + type TimeGetterPlain struct + func (f *TimeGetterPlain) Format(item any, value any) (string, error)