From d83f4bca3f7026696a41225caac11807ed06fc2f Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 24 Nov 2020 23:20:54 -0500 Subject: Add more comments. Expand the interface. Allow templates to more easily be rendered with external variables. --- local/time.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'local/time.go') diff --git a/local/time.go b/local/time.go index 72ff3c6..27efc88 100644 --- a/local/time.go +++ b/local/time.go @@ -9,6 +9,8 @@ type PageTime struct { time.Time } +// TimeFormat is the format string used when unmarshaling the time +// from the yaml information. var TimeFormat = "01.02.2006 15:04:05 MST" func (pt *PageTime) UnmarshalYAML(n *yaml.Node) error { -- cgit v1.2.3