Back to godoc.org

Package math

v0.74.3
Latest Go to latest

The latest major version is .

Published: Jul 23, 2020 | License: Apache-2.0 | Module: github.com/gohugoio/hugo

Index

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier