Help us shape the future of Go! Take the 2026 Go Developer Survey

view

package
v1.20.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 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 Compiler

type Compiler struct {
	mock.Mock
}

Compiler is an autogenerated mock type for the Compiler type

func NewCompiler

func NewCompiler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Compiler

NewCompiler creates a new instance of Compiler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Compiler) CompileViews

func (_m *Compiler) CompileViews() error

CompileViews provides a mock function with no fields

func (*Compiler) EXPECT

func (_m *Compiler) EXPECT() *Compiler_Expecter

type Compiler_CompileViews_Call

type Compiler_CompileViews_Call struct {
	*mock.Call
}

Compiler_CompileViews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompileViews'

func (*Compiler_CompileViews_Call) Return

func (*Compiler_CompileViews_Call) Run

func (*Compiler_CompileViews_Call) RunAndReturn

func (_c *Compiler_CompileViews_Call) RunAndReturn(run func() error) *Compiler_CompileViews_Call

type Compiler_Expecter

type Compiler_Expecter struct {
	// contains filtered or unexported fields
}

func (*Compiler_Expecter) CompileViews

func (_e *Compiler_Expecter) CompileViews() *Compiler_CompileViews_Call

CompileViews is a helper method to define mock.On call

type Template

type Template struct {
	mock.Mock
}

Template is an autogenerated mock type for the Template type

func NewTemplate

func NewTemplate(t interface {
	mock.TestingT
	Cleanup(func())
}) *Template

NewTemplate creates a new instance of Template. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Template) Data

func (_m *Template) Data() map[string]interface{}

Data provides a mock function with no fields

func (*Template) EXPECT

func (_m *Template) EXPECT() *Template_Expecter

func (*Template) Name

func (_m *Template) Name() string

Name provides a mock function with no fields

func (*Template) Render

func (_m *Template) Render() (string, error)

Render provides a mock function with no fields

func (*Template) With

func (_m *Template) With(key string, value interface{}) view.Template

With provides a mock function with given fields: key, value

type Template_Data_Call

type Template_Data_Call struct {
	*mock.Call
}

Template_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'

func (*Template_Data_Call) Return

func (_c *Template_Data_Call) Return(_a0 map[string]interface{}) *Template_Data_Call

func (*Template_Data_Call) Run

func (_c *Template_Data_Call) Run(run func()) *Template_Data_Call

func (*Template_Data_Call) RunAndReturn

func (_c *Template_Data_Call) RunAndReturn(run func() map[string]interface{}) *Template_Data_Call

type Template_Expecter

type Template_Expecter struct {
	// contains filtered or unexported fields
}

func (*Template_Expecter) Data

Data is a helper method to define mock.On call

func (*Template_Expecter) Name

Name is a helper method to define mock.On call

func (*Template_Expecter) Render

Render is a helper method to define mock.On call

func (*Template_Expecter) With

func (_e *Template_Expecter) With(key interface{}, value interface{}) *Template_With_Call

With is a helper method to define mock.On call

  • key string
  • value interface{}

type Template_Name_Call

type Template_Name_Call struct {
	*mock.Call
}

Template_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Template_Name_Call) Return

func (_c *Template_Name_Call) Return(_a0 string) *Template_Name_Call

func (*Template_Name_Call) Run

func (_c *Template_Name_Call) Run(run func()) *Template_Name_Call

func (*Template_Name_Call) RunAndReturn

func (_c *Template_Name_Call) RunAndReturn(run func() string) *Template_Name_Call

type Template_Render_Call

type Template_Render_Call struct {
	*mock.Call
}

Template_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'

func (*Template_Render_Call) Return

func (_c *Template_Render_Call) Return(_a0 string, _a1 error) *Template_Render_Call

func (*Template_Render_Call) Run

func (_c *Template_Render_Call) Run(run func()) *Template_Render_Call

func (*Template_Render_Call) RunAndReturn

func (_c *Template_Render_Call) RunAndReturn(run func() (string, error)) *Template_Render_Call

type Template_With_Call

type Template_With_Call struct {
	*mock.Call
}

Template_With_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'With'

func (*Template_With_Call) Return

func (*Template_With_Call) Run

func (_c *Template_With_Call) Run(run func(key string, value interface{})) *Template_With_Call

func (*Template_With_Call) RunAndReturn

func (_c *Template_With_Call) RunAndReturn(run func(string, interface{}) view.Template) *Template_With_Call

type View

type View struct {
	mock.Mock
}

View is an autogenerated mock type for the View type

func NewView

func NewView(t interface {
	mock.TestingT
	Cleanup(func())
}) *View

NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*View) AddFuncs

func (_m *View) AddFuncs(funcs template.FuncMap)

AddFuncs provides a mock function with given fields: funcs

func (*View) EXPECT

func (_m *View) EXPECT() *View_Expecter

func (*View) Exists

func (_m *View) Exists(_a0 string) bool

Exists provides a mock function with given fields: _a0

func (*View) First

func (_m *View) First(views []string, data ...interface{}) view.Template

First provides a mock function with given fields: views, data

func (*View) Funcs

func (_m *View) Funcs() template.FuncMap

Funcs provides a mock function with no fields

func (*View) GetShared

func (_m *View) GetShared() map[string]interface{}

GetShared provides a mock function with no fields

func (*View) LoadViewsFrom

func (_m *View) LoadViewsFrom(path string)

LoadViewsFrom provides a mock function with given fields: path

func (*View) LoadViewsFromFS

func (_m *View) LoadViewsFromFS(fsys fs.FS, root string)

LoadViewsFromFS provides a mock function with given fields: fsys, root

func (*View) Make

func (_m *View) Make(_a0 string, data ...interface{}) view.Template

Make provides a mock function with given fields: _a0, data

func (*View) RegisteredViewFS

func (_m *View) RegisteredViewFS() []fs.FS

RegisteredViewFS provides a mock function with no fields

func (*View) RegisteredViews

func (_m *View) RegisteredViews() []string

RegisteredViews provides a mock function with no fields

func (*View) Share

func (_m *View) Share(key string, value interface{})

Share provides a mock function with given fields: key, value

func (*View) Shared

func (_m *View) Shared(key string, def ...interface{}) interface{}

Shared provides a mock function with given fields: key, def

type View_AddFuncs_Call

type View_AddFuncs_Call struct {
	*mock.Call
}

View_AddFuncs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFuncs'

func (*View_AddFuncs_Call) Return

func (_c *View_AddFuncs_Call) Return() *View_AddFuncs_Call

func (*View_AddFuncs_Call) Run

func (_c *View_AddFuncs_Call) Run(run func(funcs template.FuncMap)) *View_AddFuncs_Call

func (*View_AddFuncs_Call) RunAndReturn

func (_c *View_AddFuncs_Call) RunAndReturn(run func(template.FuncMap)) *View_AddFuncs_Call

type View_Exists_Call

type View_Exists_Call struct {
	*mock.Call
}

View_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'

func (*View_Exists_Call) Return

func (_c *View_Exists_Call) Return(_a0 bool) *View_Exists_Call

func (*View_Exists_Call) Run

func (_c *View_Exists_Call) Run(run func(_a0 string)) *View_Exists_Call

func (*View_Exists_Call) RunAndReturn

func (_c *View_Exists_Call) RunAndReturn(run func(string) bool) *View_Exists_Call

type View_Expecter

type View_Expecter struct {
	// contains filtered or unexported fields
}

func (*View_Expecter) AddFuncs

func (_e *View_Expecter) AddFuncs(funcs interface{}) *View_AddFuncs_Call

AddFuncs is a helper method to define mock.On call

  • funcs template.FuncMap

func (*View_Expecter) Exists

func (_e *View_Expecter) Exists(_a0 interface{}) *View_Exists_Call

Exists is a helper method to define mock.On call

  • _a0 string

func (*View_Expecter) First

func (_e *View_Expecter) First(views interface{}, data ...interface{}) *View_First_Call

First is a helper method to define mock.On call

  • views []string
  • data ...interface{}

func (*View_Expecter) Funcs

func (_e *View_Expecter) Funcs() *View_Funcs_Call

Funcs is a helper method to define mock.On call

func (*View_Expecter) GetShared

func (_e *View_Expecter) GetShared() *View_GetShared_Call

GetShared is a helper method to define mock.On call

func (*View_Expecter) LoadViewsFrom

func (_e *View_Expecter) LoadViewsFrom(path interface{}) *View_LoadViewsFrom_Call

LoadViewsFrom is a helper method to define mock.On call

  • path string

func (*View_Expecter) LoadViewsFromFS

func (_e *View_Expecter) LoadViewsFromFS(fsys interface{}, root interface{}) *View_LoadViewsFromFS_Call

LoadViewsFromFS is a helper method to define mock.On call

  • fsys fs.FS
  • root string

func (*View_Expecter) Make

func (_e *View_Expecter) Make(_a0 interface{}, data ...interface{}) *View_Make_Call

Make is a helper method to define mock.On call

  • _a0 string
  • data ...interface{}

func (*View_Expecter) RegisteredViewFS

func (_e *View_Expecter) RegisteredViewFS() *View_RegisteredViewFS_Call

RegisteredViewFS is a helper method to define mock.On call

func (*View_Expecter) RegisteredViews

func (_e *View_Expecter) RegisteredViews() *View_RegisteredViews_Call

RegisteredViews is a helper method to define mock.On call

func (*View_Expecter) Share

func (_e *View_Expecter) Share(key interface{}, value interface{}) *View_Share_Call

Share is a helper method to define mock.On call

  • key string
  • value interface{}

func (*View_Expecter) Shared

func (_e *View_Expecter) Shared(key interface{}, def ...interface{}) *View_Shared_Call

Shared is a helper method to define mock.On call

  • key string
  • def ...interface{}

type View_First_Call

type View_First_Call struct {
	*mock.Call
}

View_First_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'First'

func (*View_First_Call) Return

func (_c *View_First_Call) Return(_a0 view.Template) *View_First_Call

func (*View_First_Call) Run

func (_c *View_First_Call) Run(run func(views []string, data ...interface{})) *View_First_Call

func (*View_First_Call) RunAndReturn

func (_c *View_First_Call) RunAndReturn(run func([]string, ...interface{}) view.Template) *View_First_Call

type View_Funcs_Call

type View_Funcs_Call struct {
	*mock.Call
}

View_Funcs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Funcs'

func (*View_Funcs_Call) Return

func (*View_Funcs_Call) Run

func (_c *View_Funcs_Call) Run(run func()) *View_Funcs_Call

func (*View_Funcs_Call) RunAndReturn

func (_c *View_Funcs_Call) RunAndReturn(run func() template.FuncMap) *View_Funcs_Call

type View_GetShared_Call

type View_GetShared_Call struct {
	*mock.Call
}

View_GetShared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShared'

func (*View_GetShared_Call) Return

func (_c *View_GetShared_Call) Return(_a0 map[string]interface{}) *View_GetShared_Call

func (*View_GetShared_Call) Run

func (_c *View_GetShared_Call) Run(run func()) *View_GetShared_Call

func (*View_GetShared_Call) RunAndReturn

func (_c *View_GetShared_Call) RunAndReturn(run func() map[string]interface{}) *View_GetShared_Call

type View_LoadViewsFromFS_Call

type View_LoadViewsFromFS_Call struct {
	*mock.Call
}

View_LoadViewsFromFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadViewsFromFS'

func (*View_LoadViewsFromFS_Call) Return

func (*View_LoadViewsFromFS_Call) Run

func (_c *View_LoadViewsFromFS_Call) Run(run func(fsys fs.FS, root string)) *View_LoadViewsFromFS_Call

func (*View_LoadViewsFromFS_Call) RunAndReturn

func (_c *View_LoadViewsFromFS_Call) RunAndReturn(run func(fs.FS, string)) *View_LoadViewsFromFS_Call

type View_LoadViewsFrom_Call

type View_LoadViewsFrom_Call struct {
	*mock.Call
}

View_LoadViewsFrom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadViewsFrom'

func (*View_LoadViewsFrom_Call) Return

func (*View_LoadViewsFrom_Call) Run

func (_c *View_LoadViewsFrom_Call) Run(run func(path string)) *View_LoadViewsFrom_Call

func (*View_LoadViewsFrom_Call) RunAndReturn

func (_c *View_LoadViewsFrom_Call) RunAndReturn(run func(string)) *View_LoadViewsFrom_Call

type View_Make_Call

type View_Make_Call struct {
	*mock.Call
}

View_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'

func (*View_Make_Call) Return

func (_c *View_Make_Call) Return(_a0 view.Template) *View_Make_Call

func (*View_Make_Call) Run

func (_c *View_Make_Call) Run(run func(_a0 string, data ...interface{})) *View_Make_Call

func (*View_Make_Call) RunAndReturn

func (_c *View_Make_Call) RunAndReturn(run func(string, ...interface{}) view.Template) *View_Make_Call

type View_RegisteredViewFS_Call

type View_RegisteredViewFS_Call struct {
	*mock.Call
}

View_RegisteredViewFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisteredViewFS'

func (*View_RegisteredViewFS_Call) Return

func (*View_RegisteredViewFS_Call) Run

func (*View_RegisteredViewFS_Call) RunAndReturn

func (_c *View_RegisteredViewFS_Call) RunAndReturn(run func() []fs.FS) *View_RegisteredViewFS_Call

type View_RegisteredViews_Call

type View_RegisteredViews_Call struct {
	*mock.Call
}

View_RegisteredViews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisteredViews'

func (*View_RegisteredViews_Call) Return

func (*View_RegisteredViews_Call) Run

func (*View_RegisteredViews_Call) RunAndReturn

func (_c *View_RegisteredViews_Call) RunAndReturn(run func() []string) *View_RegisteredViews_Call

type View_Share_Call

type View_Share_Call struct {
	*mock.Call
}

View_Share_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Share'

func (*View_Share_Call) Return

func (_c *View_Share_Call) Return() *View_Share_Call

func (*View_Share_Call) Run

func (_c *View_Share_Call) Run(run func(key string, value interface{})) *View_Share_Call

func (*View_Share_Call) RunAndReturn

func (_c *View_Share_Call) RunAndReturn(run func(string, interface{})) *View_Share_Call

type View_Shared_Call

type View_Shared_Call struct {
	*mock.Call
}

View_Shared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shared'

func (*View_Shared_Call) Return

func (_c *View_Shared_Call) Return(_a0 interface{}) *View_Shared_Call

func (*View_Shared_Call) Run

func (_c *View_Shared_Call) Run(run func(key string, def ...interface{})) *View_Shared_Call

func (*View_Shared_Call) RunAndReturn

func (_c *View_Shared_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *View_Shared_Call

Jump to

Keyboard shortcuts

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