helpers: Index | Files

package hctx

import ""


Package Files

context.go map.go

type Context Uses

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

type HelperContext Uses

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

type Map Uses

type Map map[string]interface{}

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

func Merge Uses

func Merge(maps ...Map) Map

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

Package hctx imports 1 packages (graph) and is imported by 20 packages. Updated 2019-04-27. Refresh now. Tools for package owners.