diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-03-24 23:25:02 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-03-24 23:25:02 +0300 |
commit | cc3ae00bbbe3bd0e04d1821e4bb54a7d8545d0a3 (patch) | |
tree | c17e0f623c038f35ff191572717213d6374da75c /package.go |
initial
Diffstat (limited to 'package.go')
-rw-r--r-- | package.go | 30 |
1 files changed, 30 insertions, 0 deletions
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 +} |