dicer

package
v0.0.0-...-a82784a Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add      = "+"
	Subtract = "-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dice

type Dice struct {
	Number   int
	Sides    int
	Keep     int
	Total    int
	Mod      int
	Results  []int
	Removed  []int
	Emoji    Emoji
	Operator string
}

func New

func New(text string) []*Dice

func (*Dice) Markdown

func (r *Dice) Markdown() string

func (*Dice) MarkdownEmoji

func (r *Dice) MarkdownEmoji() string

func (*Dice) String

func (r *Dice) String() string

type Emoji

type Emoji struct {
	Total   string
	Results []string
	Removed []string
}

Jump to

Keyboard shortcuts

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