template

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearEmptyNil

func ClearEmptyNil(variables map[string]interface{}) map[string]interface{}

ClearEmptyNil set nil interface to empty.

func Render

func Render(textTemplate string, variables map[string]interface{}) (string, error)

Render any string with variables.

func Variables

func Variables(textTemplate string) (variables []string)

Variables is a method to return a list of variables defined into template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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