Back to godoc.org
github.com/gobuffalo/helpers/hctx

package hctx

v0.6.1
Latest Go to latest
Published: Feb 6, 2020 | License: MIT | Module: github.com/gobuffalo/helpers

Index

type Context

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

type HelperContext

type HelperContext interface {
	Context
	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