package
0.10.3
Repository: https://github.com/mantidtech/tplr.git
Documentation: pkg.go.dev

# Functions

Apply a function to each element of a slice, returning a translated slice.
AsStringList converts a list to a list of strings.
Combine a slice of maps into a single map, with key collisions, later overwrites earlier.
ItemForList returns the item as a reflect.Value that can be inserted into the list.
ListInfo returns basic info that we need for most list processing, ie it's reflect.Value (converted to the generic []any type), length, or error message if it's not a list.
NewTemplate creates a new template.
PtrTo returns a pointer to a copy of the given parameter.
Reduce an array to a single value through successive calls to a function that takes the previous value and the next element of the array.
TemplateTest generates a test function for a given TestSet.
ToFloat converts the supplied argument to a float, if it can be.

# Constants

TestTemplateName is the template name used for testing.

# Variables

Now is defined as a variable so that it can be overridden as required (e.g.

# Structs

TestSet is used for specifying a template function test instance.

# Type aliases

Reducer is the signature for a reduction method used by Reduce.
TestArgs are the arguments used when testing a template.