Versions in this module Expand all Collapse all v0 v0.3.3 Sep 9, 2024 Changes in this version type FileInfo + func (fi *FileInfo) InitFileFS(fsys fs.FS, fname string) error + func (fi *FileInfo) SetFileInfo(info fs.FileInfo) + func (fi *FileInfo) SetMimeInfo() error type Known + const Number + const String + const Table + const Tensor v0.3.2 Aug 17, 2024 v0.3.1 Aug 2, 2024 v0.3.0 Jul 24, 2024 Changes in this version type FileInfo + func NewFileInfoType(ftyp Known) *FileInfo + func (fi *FileInfo) SetType(ftyp Known) type MimeType + Known Known + func MimeFromKnown(ftyp Known) MimeType v0.2.3 Jul 16, 2024 v0.2.2 Jul 14, 2024 v0.2.1 Jul 14, 2024 Changes in this version + var Icons = map[Known]icons.Icon type Known + const Obj + const Toml v0.2.0 Jun 20, 2024 v0.1.4 Jun 1, 2024 Changes in this version type Known + const Cosh v0.1.3 May 5, 2024 v0.1.2 May 1, 2024 v0.1.1 May 1, 2024 Changes in this version + const DataCsv + const DataJson + const DataXml + const TextPlain + var AvailableMimes map[string]MimeType + var CustomMimes []MimeType + var ExtMimeMap = map[string]string + var KnownMimes map[Known]MimeType + var StandardMimes = []MimeType + func CopyFile(dst, src string, perm os.FileMode) error + func Filenames(d os.File, names *[]string) (err error) + func IsMatch(targ, typ Known) bool + func IsMatchList(targs []Known, typ Known) bool + func MergeAvailableMimes() + func MimeFromFile(fname string) (mtype, ext string, err error) + func MimeNoChar(mime string) string + func MimeString(kn Known) string + func MimeSub(mime string) string + func MimeTop(mime string) string + type Categories int32 + const Archive + const Audio + const Backup + const Bin + const CategoriesN + const Code + const Data + const Doc + const Exe + const Folder + const Font + const Image + const Model + const Sheet + const Text + const UnknownCategory + const Video + func CategoriesValues() []Categories + func CategoryFromMime(mime string) Categories + func (i *Categories) SetInt64(in int64) + func (i *Categories) SetString(s string) error + func (i *Categories) UnmarshalText(text []byte) error + func (i Categories) Desc() string + func (i Categories) Int64() int64 + func (i Categories) MarshalText() ([]byte, error) + func (i Categories) String() string + func (i Categories) Values() []enums.Enum + type FileInfo struct + Cat Categories + Ic icons.Icon + Kind string + Known Known + Mime string + ModTime FileTime + Mode os.FileMode + Name string + Path string + Size datasize.Size + VCS vcs.FileStatus + func NewFileInfo(fname string) (*FileInfo, error) + func (fi *FileInfo) Delete() error + func (fi *FileInfo) Duplicate() (string, error) + func (fi *FileInfo) Filenames(names *[]string) (err error) + func (fi *FileInfo) FindIcon() (icons.Icon, bool) + func (fi *FileInfo) InitFile(fname string) error + func (fi *FileInfo) IsDir() bool + func (fi *FileInfo) IsExec() bool + func (fi *FileInfo) IsHidden() bool + func (fi *FileInfo) IsSymlink() bool + func (fi *FileInfo) Rename(path string) (newpath string, err error) + func (fi *FileInfo) RenamePath(path string) (newpath string, err error) + func (fi *FileInfo) Stat() error + type FileTime time.Time + func (ft *FileTime) UnmarshalBinary(data []byte) error + func (ft *FileTime) UnmarshalJSON(data []byte) error + func (ft *FileTime) UnmarshalText(data []byte) error + func (ft FileTime) Int() int64 + func (ft FileTime) MarshalBinary() ([]byte, error) + func (ft FileTime) MarshalJSON() ([]byte, error) + func (ft FileTime) MarshalText() ([]byte, error) + func (ft FileTime) String() string + type Known int32 + const Aac + const Ada + const Any + const AnyArchive + const AnyAudio + const AnyBackup + const AnyBin + const AnyCode + const AnyData + const AnyDoc + const AnyExe + const AnyFolder + const AnyFont + const AnyImage + const AnyKnown + const AnyModel + const AnySheet + const AnyText + const AnyVideo + const Avi + const BZip + const Bash + const BibTeX + const Bmp + const C + const CSharp + const CogentCore + const Color + const Csh + const Css + const Csv + const D + const Diff + const Dmg + const EBook + const EPub + const Eiffel + const Erlang + const FSharp + const Flac + const Forth + const Fortran + const GZip + const Gif + const Gimp + const Go + const GraphVis + const Haskell + const Heic + const Heif + const Html + const ICal + const Ini + const Java + const JavaScript + const Jpeg + const Json + const KnownN + const Lisp + const Lua + const MSExcel + const MSPowerpoint + const MSWord + const Makefile + const Markdown + const Mathematica + const Matlab + const Midi + const Mov + const Mp3 + const Mp4 + const Mpeg + const Multipart + const OCaml + const ObjC + const Ogg + const Ogv + const OpenPres + const OpenSheet + const OpenText + const Pascal + const Pbm + const Pdf + const Perl + const Pgm + const Php + const PlainText + const Png + const Pnm + const Postscript + const Ppm + const Prolog + const Protobuf + const Python + const R + const Rtf + const Ruby + const Rust + const Scala + const SevenZ + const Shar + const Svg + const Tar + const Tcl + const TeX + const Texinfo + const Tiff + const Trash + const Troff + const TrueType + const Tsv + const Unknown + const Uri + const VCal + const VCard + const Vrml + const Wav + const WebOpenFont + const Wmv + const X3d + const Xbm + const Xml + const Xpm + const Xz + const Yaml + const Zip + func ExtKnown(ext string) Known + func KnownByName(name string) (Known, error) + func KnownFromFile(fname string) Known + func KnownValues() []Known + func MimeKnown(mime string) Known + func (i *Known) SetInt64(in int64) + func (i *Known) SetString(s string) error + func (i *Known) UnmarshalText(text []byte) error + func (i Known) Desc() string + func (i Known) Int64() int64 + func (i Known) MarshalText() ([]byte, error) + func (i Known) String() string + func (i Known) Values() []enums.Enum + func (kn Known) Cat() Categories + type MimeType struct + Cat Categories + Exts []string + Mime string + Sup Known