Documentation
¶
Overview ¶
Package info that extracts file statistics and metadata.
Index ¶
Constants ¶
View Source
const ( // DTFormat is the date-time format. DTFormat = "DMY24" // DFormat is the date format. DFormat = "DMY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checksums ¶ added in v0.0.31
type Checksums struct { CRC32 string `json:"CRC32" xml:"CRC32"` CRC64 string `json:"CRC64" xml:"CRC64"` MD5 string `json:"MD5" xml:"md5"` SHA256 string `json:"SHA256" xml:"sha256"` }
Checksums and hashes of the file.
type Content ¶ added in v0.0.31
type Content struct { Type string `json:"-" xml:"-"` Media string `json:"media" xml:"media"` Sub string `json:"subMedia" xml:"sub_media"` Commt string `json:"comment" xml:"comment"` }
Content metadata from either MIME content type and magic file data.
type Detail ¶
type Detail struct { XMLName xml.Name `json:"-" xml:"file"` Name string `json:"filename" xml:"name"` Unicode string `json:"unicode" xml:"unicode,attr"` LineBreak LineBreaks `json:"lineBreak" xml:"line_break"` Count Stats `json:"counts" xml:"counts"` Size Sizes `json:"size" xml:"size"` Lines int `json:"lines" xml:"lines"` Width int `json:"width" xml:"width"` Modified ModDates `json:"modified" xml:"last_modified"` Sums Checksums `json:"checksums" xml:"checksums"` Mime Content `json:"mime" xml:"mime"` Slug string `json:"slug" xml:"id,attr"` Sauce sauce.Record `json:"sauce" xml:"sauce"` ZipComment string `json:"zipComment" xml:"zip_comment"` // contains filtered or unexported fields }
Detail of a file.
type LineBreaks ¶ added in v0.0.31
type LineBreaks struct { Abbr string `json:"string" xml:"string,attr"` Escape string `json:"escape" xml:"-"` Decimals [2]rune `json:"decimals" xml:"decimal"` }
LineBreaks for new line toggles.
type ModDates ¶ added in v0.0.31
type ModDates struct { Time time.Time `json:"iso" xml:"date"` Epoch int64 `json:"epoch" xml:"epoch,attr"` }
ModDates is the file last modified dates in multiple output formats.
Click to show internal directories.
Click to hide internal directories.