template

package
v0.0.0-...-3faa8e7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStaticContextEntry

func AddStaticContextEntry(key string, value interface{})

func Resolve

func Resolve(v interface{}, c Context) (out interface{}, err error)

Creates a deep copy of whatever is passed to it and evaluates string nodes as templates with the provided context. This function is intended to be used with JSON objects, so does not handle pointers and structs.

Types

type Context

type Context map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳