category

package
v0.0.0-...-580188d Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category string
const (
	Harmless  Category = "harmless"
	Delicate  Category = "delicate"
	Offensive Category = "offensive"
)

func Match

func Match(val string) (Category, bool)

func (*Category) Scan

func (c *Category) Scan(src interface{}) error

func (*Category) String

func (c *Category) String() string

func (*Category) Value

func (c *Category) Value() (driver.Value, error)

type Selection

type Selection struct {
	// contains filtered or unexported fields
}

func NewSelection

func NewSelection() *Selection

func (*Selection) Add

func (s *Selection) Add(category Category)

func (*Selection) Empty

func (s *Selection) Empty() bool

func (*Selection) Has

func (s *Selection) Has(category Category) bool

func (*Selection) Random

func (s *Selection) Random() Category

Jump to

Keyboard shortcuts

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