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.67.0
Published
Mar 9, 2020
Platform
linux/amd64
Imports
2 packages
Last checked
7 hours ago

Tools for package owners.