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
Click to show internal directories.
Click to hide internal directories.