From cc3ae00bbbe3bd0e04d1821e4bb54a7d8545d0a3 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 24 Mar 2022 23:25:02 +0300 Subject: initial --- package.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package.go (limited to 'package.go') diff --git a/package.go b/package.go new file mode 100644 index 0000000..2ab5430 --- /dev/null +++ b/package.go @@ -0,0 +1,30 @@ +package main + +type Config struct { + Title string `json:"title"` + Host string `json:"host"` + Packages *Packages `json:"packages"` +} + +type Packages map[string]Package + +type Package struct { + Pkg string `json:"pkg"` + VCS string `json:"vcs"` + Repo string `json:"repo"` + Description string `json:"desc"` +} + +type pageRenderContext struct { + Title string + Package *Package + Host string + Doc string +} + +type indexRenderContext struct { + Title string + Packages *Packages + Host string + Doc string +} -- cgit v1.2.3