From 97df77d158388ff3443393f6faf99d61cd16473f Mon Sep 17 00:00:00 2001 From: Umar Getagazov Date: Wed, 14 Sep 2022 10:39:37 +0300 Subject: [PATCH] go fmt --- categories/categories.go | 26 +++++++++++++------------- help/help.go | 3 ++- l18n/l18n.go | 1 + main.go | 3 ++- migration/migration.go | 4 ++-- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/categories/categories.go b/categories/categories.go index 4a093f5..d49ee3d 100644 --- a/categories/categories.go +++ b/categories/categories.go @@ -3,22 +3,22 @@ // As per the long pondering, this is how categories (cats for short) // work in Mycorrhiza: // -// - Cats are not hyphae. Cats are separate entities. This is not as -// vibeful as I would have wanted, but seems to be more practical -// due to //the reasons//. -// - Cats are stored outside of git. Instead, they are stored in a -// JSON file, path to which is determined by files.CategoriesJSON. -// - Due to not being stored in git, no cat history is tracked, and -// cat operations are not mentioned on the recent changes page. -// - For cat A, if there are 0 hyphae in the cat, cat A does not -// exist. If there are 1 or more hyphae in the cat, cat A exists. +// - Cats are not hyphae. Cats are separate entities. This is not as +// vibeful as I would have wanted, but seems to be more practical +// due to //the reasons//. +// - Cats are stored outside of git. Instead, they are stored in a +// JSON file, path to which is determined by files.CategoriesJSON. +// - Due to not being stored in git, no cat history is tracked, and +// cat operations are not mentioned on the recent changes page. +// - For cat A, if there are 0 hyphae in the cat, cat A does not +// exist. If there are 1 or more hyphae in the cat, cat A exists. // // List of things to do with categories later: // -// - Forbid / in cat names. -// - Rename categories. -// - Delete categories. -// - Bind hyphae. +// - Forbid / in cat names. +// - Rename categories. +// - Delete categories. +// - Bind hyphae. package categories import "sync" diff --git a/help/help.go b/help/help.go index 057d3c1..5091c6e 100644 --- a/help/help.go +++ b/help/help.go @@ -9,7 +9,8 @@ import ( var fs embed.FS // Get determines what help text you need and returns it. The path is a substring from URL, it follows this form: -// / +// +// / func Get(path string) ([]byte, error) { if path == "" { return Get("en") diff --git a/l18n/l18n.go b/l18n/l18n.go index b557de0..d352d61 100644 --- a/l18n/l18n.go +++ b/l18n/l18n.go @@ -40,6 +40,7 @@ type Localizer struct { } // locales is a filesystem containing all localization files. +// //go:embed en ru var locales embed.FS diff --git a/main.go b/main.go index f098052..f5d492b 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,10 @@ +// Command mycorrhiza is a program that runs a mycorrhiza wiki. +// //go:generate go run github.com/valyala/quicktemplate/qtc -dir=tree //go:generate go run github.com/valyala/quicktemplate/qtc -dir=history //go:generate go run github.com/valyala/quicktemplate/qtc -dir=mycoopts //go:generate go run github.com/valyala/quicktemplate/qtc -dir=auth //go:generate go run github.com/valyala/quicktemplate/qtc -dir=hypview -// Command mycorrhiza is a program that runs a mycorrhiza wiki. package main import ( diff --git a/migration/migration.go b/migration/migration.go index 7f4a683..00bf1ff 100644 --- a/migration/migration.go +++ b/migration/migration.go @@ -3,8 +3,8 @@ // Migrations are meant to be removed couple of versions after being introduced. // // Available migrations: -// * Rocket links -// * Headings +// - Rocket links +// - Headings package migration import (