category

package
v1.19.25 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 9 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 struct {
	ID    primitive.ObjectID `bson:"_id,omitempty"`
	Title bayesian.Class     `bson:"t,omitempty"`
	Slug  string             `bson:"s,omitempty"`
}

func (*Category) GetOrCreate

func (c *Category) GetOrCreate(ctx context.Context, title bayesian.Class) (doc Category, err error)

Jump to

Keyboard shortcuts

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