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.56.1
Published
Jul 28, 2019
Platform
darwin/amd64
Imports
2 packages
Last checked
56 seconds ago

Tools for package owners.