Documentation
¶
Index ¶
- Constants
- func Append(desc, label, meta, body string, at time.Time, tz *time.Location) string
- func BuildBlock(label, meta, body string, at time.Time, tz *time.Location) string
- func FormatTimestamp(at time.Time, tz *time.Location) string
- func Join(blocks []Block, tz *time.Location) string
- func ParseTimestamp(s string) (time.Time, error)
- func PrependAfterFirst(desc, label, meta, body string, at time.Time, tz *time.Location) string
- func SanitizeText(s string) string
- func StripMarkers(s string) string
- type Block
Constants ¶
View Source
const ( Marker = "\u001e" // Numeric offset so Parse is independent of time.Local (MST abbreviations // like PDT are only resolved when Local knows them; CI is usually UTC). TimestampLayout = "2006-01-02 03:04:05 PM -0700" )
Variables ¶
This section is empty.
Functions ¶
func PrependAfterFirst ¶
PrependAfterFirst inserts a block immediately after the first entry.
func SanitizeText ¶
func StripMarkers ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.