aboutsummaryrefslogtreecommitdiff
path: root/local/time.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-02-15 15:31:37 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2021-02-15 15:32:05 -0500
commitfe9ec7a0b45c9fd23a615a8b95ade3e9c1ea2d12 (patch)
tree80844a62d5d18b30862cfdc610aae88713fe97d9 /local/time.go
parentd83f4bca3f7026696a41225caac11807ed06fc2f (diff)
downloadgo-website-fe9ec7a0b45c9fd23a615a8b95ade3e9c1ea2d12.tar.gz
go-website-fe9ec7a0b45c9fd23a615a8b95ade3e9c1ea2d12.tar.xz
Another re-structure. Deleting code is wonderful.v0.0.12
Diffstat (limited to 'local/time.go')
-rw-r--r--local/time.go23
1 files changed, 0 insertions, 23 deletions
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
-}