helpers: github.com/gobuffalo/helpers/hctx Index | Files

package hctx

import "github.com/gobuffalo/helpers/hctx"

Index

Package Files

context.go map.go

type Context Uses

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

type HelperContext Uses

type HelperContext interface {
    Context
    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 19 packages. Updated 2019-04-27. Refresh now. Tools for package owners.