hctx

package
Version: v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL