diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-24 23:20:54 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-24 23:20:54 -0500 |
| commit | d83f4bca3f7026696a41225caac11807ed06fc2f (patch) | |
| tree | 634552e0253407785f81cb28cf136fadec4d65e4 /local/time.go | |
| parent | 2203a437cc7ba0ca087a47d6e99476ba5e09ae71 (diff) | |
| download | go-website-d83f4bca3f7026696a41225caac11807ed06fc2f.tar.gz go-website-d83f4bca3f7026696a41225caac11807ed06fc2f.tar.xz | |
Add more comments. Expand the interface. Allow templates to more easily be rendered with external variables.v0.0.11
Diffstat (limited to 'local/time.go')
| -rw-r--r-- | local/time.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |
