category

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 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,
	"science": SCIENCE,
	"news":    NEWS,
	"blog":    BLOG,
	"surf":    SURF,
	"newnews": NEWNEWS,

	"wiki":  INFO,
	"sci":   SCIENCE,
	"nnews": NEWNEWS,
}

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"
	NEWS      Name = "news"
	BLOG      Name = "blog"
	SURF      Name = "surf"
	NEWNEWS   Name = "newnews"
)

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

func FromQuery

func FromQuery(query string) Name

returns category

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