Back to

package hctx

Latest Go to latest
Published: Feb 6, 2020 | License: MIT | Module:


type Context

type Context interface {
	New() Context
	Has(key string) bool
	Set(key string, value interface{})

type HelperContext

type HelperContext interface {
	Block() (string, error)
	BlockWith(Context) (string, error)
	HasBlock() bool
	Render(s string) (string, error)

type Map

type Map map[string]interface{}

Map is a standard map[string]interface{} for use throughout the helper packages.

func Merge

func Merge(maps ...Map) Map

Merge creates a single Map from any number of Maps. Latter key/value pairs will overwrite earlier pairs.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier