contract

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOption = Option{
	Debug:        false,
	CompileDebug: false,
	RmWhitespace: false,
	Filename:     "go_embed.js",
}

Functions

This section is empty.

Types

type Engine

type Engine interface {
	RegisterLibrary(file string) error
	Exec(tpl string, data interface{}, opt *Option) (string, error)
}

type Option

type Option struct {
	Debug        bool   `json:"debug,omitempty"`
	CompileDebug bool   `json:"compileDebug,omitempty"`
	RmWhitespace bool   `json:"rmWhitespace,omitempty"`
	Filename     string `json:"filename,omitempty"`
	LocalsName   string `json:"localsName,omitempty"`
}

type Script

type Script interface {
	GetScriptCode() string
}

Jump to

Keyboard shortcuts

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