package
Version:
v0.0.0-...-a30bc99
Opens a new window with list of versions in this module.
Published: Apr 21, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package dice provides methods for simulating the rolling of polyhedral dice.
Roll rolls "num" number of dice with "sides" sides and returns the total result
type Dice struct {
Number int `json:"number" db:"number"`
Sides int `json:"sides" db:"sides"`
}
Dice is a representation of polyhedral dice
ParseFromString returns a Dice struct parsed from a string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.