Documentation ¶
Index ¶
- Variables
- func CreateHaste(content string) (string, error)
- func EvaluateMathematicalExpression(expression string) (string, error)
- func GenerateFromInterval(raw string) (bool, int)
- func PrettifyBool(value bool) string
- func RenderLaTeX(expression string) (string, error)
- func StringArrayContains(array []string, element string) bool
- func StringHasPrefix(str string, prefixes []string, replace bool) (string, bool)
- func StringHasSuffix(str string, suffixes []string, replace bool) (string, bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var IntervalRegex = regexp.MustCompile(static.IntervalRegexString)
IntervalRegex defines the compiled interval RegEx
Functions ¶
func CreateHaste ¶
CreateHaste creates a haste and returns the URL
func EvaluateMathematicalExpression ¶ added in v1.1.0
EvaluateMathematicalExpression evaluates the given expression and returns the result
func GenerateFromInterval ¶ added in v1.1.0
GenerateFromInterval generates a random number using the given interval
func RenderLaTeX ¶ added in v1.1.0
RenderLaTeX renders a LaTeX expression and returns the image URL
func StringArrayContains ¶
StringArrayContains checks whether or not an array of strings contains the given element
func StringHasPrefix ¶
StringHasPrefix checks whether or not the given string starts with at least one element of the given array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.