template

package
v0.0.0-...-c12b17c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTemplateRennder

type MockTemplateRennder struct {
	GetScriptfunc func(baseUrl string, params *omnitruck.RequestParams, filePath string) (string, error)
}

func (*MockTemplateRennder) GetScript

func (mfu *MockTemplateRennder) GetScript(baseUrl string, params *omnitruck.RequestParams, filePath string) (string, error)

type TemplateRender

type TemplateRender interface {
	GetScript(baseUrl string, params *omnitruck.RequestParams, filePath string) (string, error)
}

type TemplateRennderImpl

type TemplateRennderImpl struct{}

func NewTemplateRender

func NewTemplateRender() *TemplateRennderImpl

func (*TemplateRennderImpl) GetScript

func (fu *TemplateRennderImpl) GetScript(baseUrl string, params *omnitruck.RequestParams, filePath string) (string, error)

Jump to

Keyboard shortcuts

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