customfuncs

package
v0.0.0-...-54282bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

OmniV20CustomFuncs all custom funcs supported by 'omni.2.0'.

View Source
var OmniV20OnlyCustomFuncs = map[string]customfuncs.CustomFuncType{

	"avg": Avg,
	"sum": Sum,
}

OmniV20OnlyCustomFuncs contains 'omni.2.0' specific custom funcs.

Functions

func Avg

func Avg(_ *transformctx.Ctx, values ...string) (string, error)

Avg computes the average of the specified 'values'. If no 'values' are given, it returns '0'.

func Sum

func Sum(_ *transformctx.Ctx, values ...string) (string, error)

Sum computes the sum of the specified 'values'. If no 'values' are given, it returns '0'.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL