dice

package
v0.0.0-...-29725af Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNotation = errors.New("invalid notation")
	DefaultDice        = &DiceNotation{Dices: 1, Faces: 6}
)

Functions

This section is empty.

Types

type DiceNotation

type DiceNotation struct {
	Dices, Faces int
}

func ParseNotation

func ParseNotation(str string) (*DiceNotation, error)

func (*DiceNotation) String

func (d *DiceNotation) String() string

Jump to

Keyboard shortcuts

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