From e416310ae81a1ecc648c3ae59f6f46326880e818 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sat, 18 Jun 2022 08:32:04 -0400 Subject: peach: add `/about` section Initial version. --- meta/meta.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta/meta.go (limited to 'meta') diff --git a/meta/meta.go b/meta/meta.go new file mode 100644 index 0000000..a00504b --- /dev/null +++ b/meta/meta.go @@ -0,0 +1,16 @@ +// Copyright © 2022 siddharth ravikumar +// SPDX-License-Identifier: ISC + +package meta + +import "ricketyspace.net/peach/version" + +type Meta struct { + Version string +} + +func NewMeta() *Meta { + m := new(Meta) + m.Version = version.Version + return m +} -- cgit v1.2.3