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.89.0
Published
Nov 2, 2021
Platform
windows/amd64
Imports
2 packages
Last checked
18 minutes ago

Tools for package owners.