package
0.0.0-20240426015834-4e95258df453
Repository: https://github.com/travis-g/dice.git
Documentation: pkg.go.dev
# Functions
EvaluateExpression evaluates a string expression of dice, math, or a combination of the
two, and returns the resulting ExpressionResult.
No description provided by the author
ParseExpressionWithFunc
rolledBytes, err := ParseExpressionWithFunc(ctx, dice.DiceWithModifiersExpressionRegex, de.Original, ).
# Variables
DiceFunctions are functions usable in dice arithmetic operations, such as round, min, and max.
Possible error types for mathematical functions.
Math package errors.
Math package errors.
Possible error types for mathematical functions.
# Structs
An ExpressionResult is a representation of a dice roll that has been evaluated.