Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExtensionOrgmode is the extension of orgmode files. ExtensionOrgmode = ".org" // ExtensionMarkdown is the extension of markdown files. ExtensionMarkdown = ".md" // ExtensionHtml is the extension of html files. ExtensionHtml = ".html" // DefaultPreviewFile is the name of the file where the preview of the gallery is stored. DefaultPreviewFile = "preview.png" // DefaultVendorDirectory is the name of the dir where vendor images are stored. DefaultVendorDirectory yunyun.RelativePathDir = "darkness_vendor" // DefaultPreviewDirectory is the name of the dir where all gallery previews are stored. DefaultPreviewDirectory yunyun.RelativePathDir = "darkness_gallery_previews" // DefaultPreviewWidth is the default width of the gallery preview. PagePreviewWidth = 1200 // DefaultPreviewHeight is the default height of the gallery preview. PagePreviewHeight = 700 // LastBuildTimestampFile is where we write the RFC3339 of last build. LastBuildTimestampFile = "last_built.txt" )
View Source
const ( // DebugLevel is the debug level. DebugLevel l.Level = iota - 1 // InfoLevel is the info level. InfoLevel // WarnLevel is the warn level. WarnLevel // ErrorLevel is the error level. ErrorLevel // FatalLevel is the fatal level. FatalLevel )
Variables ¶
View Source
var ( // PagePreviewWidthString is the string representation of PagePreviewWidth. PagePreviewWidthString = strconv.Itoa(PagePreviewWidth) // PagePreviewHeightString is the string representation of PagePreviewHeight. PagePreviewHeightString = strconv.Itoa(PagePreviewHeight) )
View Source
var ( HEregex = regexp.MustCompile(`(?P<day>\d+);\s*(?P<year>\d+)\s*H.E.\s*(?P<hour_minute>[0-9]{4})?`) HERegexSubmatchNames = HEregex.SubexpNames() )
HEregex is a regex for matching Holoscene times
View Source
var Logger = NewLogger("Darkness 🥬 ")
Logger is darkness' logger.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.