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

package helptest

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

Index

Package Files

context.go

type HelperContext Uses

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 Uses

func NewContext() *HelperContext

func (HelperContext) Block Uses

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

func (HelperContext) BlockWith Uses

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

func (HelperContext) Data Uses

func (f HelperContext) Data() sync.Map

func (HelperContext) Has Uses

func (c HelperContext) Has(key string) bool

Has checks the existence of the key in the context.

func (HelperContext) HasBlock Uses

func (f HelperContext) HasBlock() bool

func (HelperContext) New Uses

func (f HelperContext) New() hctx.Context

func (HelperContext) Render Uses

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

func (*HelperContext) Set Uses

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

func (HelperContext) Value Uses

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

Package helptest imports 4 packages (graph). Updated 2019-05-30. Refresh now. Tools for package owners.