template

package
v0.27.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 164

Documentation

Overview

This package is copied from Go library text/template. The original private functions indirect and printableValue are exported as public functions.

This package is copied from Go library text/template. The original private functions eq, ge, gt, le, lt, and ne are exported as public functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(arg1 interface{}, arg2 ...interface{}) (bool, error)

Equal evaluates the comparison a == b || a == c || ...

func Greater

func Greater(arg1, arg2 interface{}) (bool, error)

Greater evaluates the comparison a > b.

func GreaterEqual

func GreaterEqual(arg1, arg2 interface{}) (bool, error)

GreaterEqual evaluates the comparison a >= b.

func Indirect

func Indirect(v reflect.Value) (rv reflect.Value, isNil bool)

Indirect returns the item at the end of indirection, and a bool to indicate if it's nil. We indirect through pointers and empty interfaces (only) because non-empty interfaces have methods we might need.

func Less

func Less(arg1, arg2 interface{}) (bool, error)

Less evaluates the comparison a < b.

func LessEqual

func LessEqual(arg1, arg2 interface{}) (bool, error)

LessEqual evaluates the comparison <= b.

func NotEqual

func NotEqual(arg1, arg2 interface{}) (bool, error)

NotEqual evaluates the comparison a != b.

func PrintableValue

func PrintableValue(v reflect.Value) (interface{}, bool)

PrintableValue returns the, possibly indirected, interface value inside v that is best for a call to formatted printer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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