utils

package
v0.0.0-...-5996917 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi

func Btoi(val bool) int

func DiceRoll

func DiceRoll(dieSides int, numDice int, mod int, drop int, total bool) []int

func IndexOf

func IndexOf(element string, data []string) int

func IntIn

func IntIn(a int, list []int) bool

func RandListSelection

func RandListSelection(stringList []string) string

func RandMapKeySelection

func RandMapKeySelection(mapList map[string]int) string

func RandString

func RandString(n int) string

func RankMapStringInt

func RankMapStringInt(values map[string]int) []string

func ReadLines

func ReadLines(path string) ([]string, error)

func RemoveInt

func RemoveInt(slice []int, s int) []int

func Roll

func Roll(dieSides int, numDice int, mod int) int

func RollMax

func RollMax(dieSides int, numDice int, mod int) int

func RollMin

func RollMin(numDice int, mod int) int

func StringIn

func StringIn(a string, list []string) bool

func StringInLike

func StringInLike(a string, list []string) bool

func StringInLower

func StringInLower(a string, list []string) bool

func Sum

func Sum(input []int) int

func Title

func Title(s string) string

func WhereAt

func WhereAt(subLoc int, charLoc int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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