helptest

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelperContext

type HelperContext struct {
	context.Context

	BlockFn        func() (string, error)
	BlockContextFn func(hctx.Context) (string, error)
	RenderFn       func(string) (string, error)
	// contains filtered or unexported fields
}

func NewContext

func NewContext() *HelperContext

func (HelperContext) Block

func (f HelperContext) Block() (string, error)

func (HelperContext) BlockWith

func (f HelperContext) BlockWith(c hctx.Context) (string, error)

func (HelperContext) Data

func (f HelperContext) Data() sync.Map

func (HelperContext) Has

func (c HelperContext) Has(key string) bool

Has checks the existence of the key in the context.

func (HelperContext) HasBlock

func (f HelperContext) HasBlock() bool

func (HelperContext) New

func (f HelperContext) New() hctx.Context

func (HelperContext) Render

func (f HelperContext) Render(s string) (string, error)

func (*HelperContext) Set

func (f *HelperContext) Set(key string, value interface{})

func (HelperContext) Value

func (f HelperContext) Value(key interface{}) interface{}

Jump to

Keyboard shortcuts

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