config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextScope    = "scope"
	ContextLanguage = "lang"
)
View Source
const (
	CmdStart = "/start"
	CmdPing  = "/ping"
)

Variables

View Source
var C config
View Source
var SearchOrders = []SearchOrder{
	{
		Text: "🔀 Normal",
	},
	{
		SortBy: []search.OptionSortByItem{{
			Field:   "date",
			Reverse: false,
		}},
		Text: "🔀 Date",
	},
	{
		SortBy: []search.OptionSortByItem{{
			Field:   "date",
			Reverse: true,
		}},
		Text: "🔀 Date Reverse",
	},
}

SearchOrders todo(iyear): i18n and refactor

Functions

func Init

func Init(path string) error

Types

type SearchOrder

type SearchOrder struct {
	SortBy []search.OptionSortByItem
	Text   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL