statement

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Statement

type Statement struct {
	ID        uuid.UUID         `json:"ID"`
	Statement string            `json:"statement"`
	Category  category.Category `json:"category"`
}

func GetByID

func GetByID(ID uuid.UUID) (*Statement, error)

func GetNextByPreviousIDAndCategory

func GetNextByPreviousIDAndCategory(ID uuid.UUID, category category.Category) (*Statement, error)

func GetRandomByCategory

func GetRandomByCategory(category category.Category) (*Statement, error)

func (*Statement) Translate

func (s *Statement) Translate(target language.Tag) error

Jump to

Keyboard shortcuts

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