From fe9ec7a0b45c9fd23a615a8b95ade3e9c1ea2d12 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 15 Feb 2021 15:31:37 -0500 Subject: Another re-structure. Deleting code is wonderful. --- local/time.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 local/time.go (limited to 'local/time.go') diff --git a/local/time.go b/local/time.go deleted file mode 100644 index 27efc88..0000000 --- a/local/time.go +++ /dev/null @@ -1,23 +0,0 @@ -package local - -import ( - "gopkg.in/yaml.v3" - "time" -) - -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 { - t, err := time.Parse(TimeFormat, n.Value) - if err != nil { - return err - } - pt.Time = t - return nil -} -- cgit v1.2.3