category

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FromString = map[string]Name{
	"general": GENERAL,
	"images":  IMAGES,
	"info":    INFO,
	"wiki":    INFO,
	"science": SCIENCE,
	"sci":     SCIENCE,
	"surf":    SURF,
}

Functions

This section is empty.

Types

type Name

type Name string
const (
	UNDEFINED Name = "undefined"
	GENERAL   Name = "general"
	IMAGES    Name = "images"
	INFO      Name = "info"
	SCIENCE   Name = "science"
	SURF      Name = "surf"
)

enumer not necessary, won't be updated often, have to have FromString anyways

func FromQuery

func FromQuery(query string) Name

returns category

func FromQueryWithFallback added in v0.14.0

func FromQueryWithFallback(query string, fallback Name) Name

func SafeFromString

func SafeFromString(cat string) Name

Jump to

Keyboard shortcuts

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