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.79.0
Published
Nov 27, 2020
Platform
windows/amd64
Imports
2 packages
Last checked
3 minutes ago

Tools for package owners.