package math

import "github.com/gohugoio/hugo/common/math"

Index

Functions

func DoArithmetic

func DoArithmetic(a, b interface{}, op rune) (interface{}, error)

DoArithmetic performs arithmetic operations (+,-,*,/) using reflection to determine the type of the two terms.

Source Files

math.go

Version
v0.93.2
Published
Mar 4, 2022
Platform
js/wasm
Imports
2 packages
Last checked
30 minutes ago

Tools for package owners.