util

package
v0.1.4-beta Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	New  = "N"
	Used = "U"
)

Variables

View Source
var (
	ErrNotFound        = errors.New("entity not found")
	ErrForbidden       = errors.New("permission denied")
	ErrNotImplemented  = errors.New("not implemented")
	ErrInvalidArgument = errors.New("invalid argument")
)

Functions

func RandomString

func RandomString(length int, rnd *rand.Rand) string

func YesOrNo

func YesOrNo(b bool) string

Types

type Rating

type Rating int
const (
	Praise Rating = iota
	Neutral
	Complaint
)

func (Rating) String

func (fr Rating) String() string

Jump to

Keyboard shortcuts

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