Back to godoc.org

Package math

v0.75.1
Latest Go to latest

The latest major version is .

Published: Sep 15, 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