mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 03:36:16 +00:00
go fmt
This commit is contained in:
parent
ab848247c9
commit
97df77d158
@ -3,22 +3,22 @@
|
|||||||
// As per the long pondering, this is how categories (cats for short)
|
// As per the long pondering, this is how categories (cats for short)
|
||||||
// work in Mycorrhiza:
|
// work in Mycorrhiza:
|
||||||
//
|
//
|
||||||
// - Cats are not hyphae. Cats are separate entities. This is not as
|
// - Cats are not hyphae. Cats are separate entities. This is not as
|
||||||
// vibeful as I would have wanted, but seems to be more practical
|
// vibeful as I would have wanted, but seems to be more practical
|
||||||
// due to //the reasons//.
|
// due to //the reasons//.
|
||||||
// - Cats are stored outside of git. Instead, they are stored in a
|
// - Cats are stored outside of git. Instead, they are stored in a
|
||||||
// JSON file, path to which is determined by files.CategoriesJSON.
|
// JSON file, path to which is determined by files.CategoriesJSON.
|
||||||
// - Due to not being stored in git, no cat history is tracked, and
|
// - Due to not being stored in git, no cat history is tracked, and
|
||||||
// cat operations are not mentioned on the recent changes page.
|
// 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
|
// - 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.
|
// exist. If there are 1 or more hyphae in the cat, cat A exists.
|
||||||
//
|
//
|
||||||
// List of things to do with categories later:
|
// List of things to do with categories later:
|
||||||
//
|
//
|
||||||
// - Forbid / in cat names.
|
// - Forbid / in cat names.
|
||||||
// - Rename categories.
|
// - Rename categories.
|
||||||
// - Delete categories.
|
// - Delete categories.
|
||||||
// - Bind hyphae.
|
// - Bind hyphae.
|
||||||
package categories
|
package categories
|
||||||
|
|
||||||
import "sync"
|
import "sync"
|
||||||
|
@ -9,7 +9,8 @@ import (
|
|||||||
var fs embed.FS
|
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:
|
// Get determines what help text you need and returns it. The path is a substring from URL, it follows this form:
|
||||||
// <language>/<topic>
|
//
|
||||||
|
// <language>/<topic>
|
||||||
func Get(path string) ([]byte, error) {
|
func Get(path string) ([]byte, error) {
|
||||||
if path == "" {
|
if path == "" {
|
||||||
return Get("en")
|
return Get("en")
|
||||||
|
@ -40,6 +40,7 @@ type Localizer struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// locales is a filesystem containing all localization files.
|
// locales is a filesystem containing all localization files.
|
||||||
|
//
|
||||||
//go:embed en ru
|
//go:embed en ru
|
||||||
var locales embed.FS
|
var locales embed.FS
|
||||||
|
|
||||||
|
3
main.go
3
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=tree
|
||||||
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=history
|
//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=mycoopts
|
||||||
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=auth
|
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=auth
|
||||||
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=hypview
|
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=hypview
|
||||||
// Command mycorrhiza is a program that runs a mycorrhiza wiki.
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
// Migrations are meant to be removed couple of versions after being introduced.
|
// Migrations are meant to be removed couple of versions after being introduced.
|
||||||
//
|
//
|
||||||
// Available migrations:
|
// Available migrations:
|
||||||
// * Rocket links
|
// - Rocket links
|
||||||
// * Headings
|
// - Headings
|
||||||
package migration
|
package migration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user