core

package
v0.0.0-...-790482d Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitFuncs []func(*Context)

Functions

func IsVerbose

func IsVerbose(rt *otto.Otto) bool

func RegisterInit

func RegisterInit(f func(*Context))

func Sanitize

func Sanitize(rt *otto.Otto, o interface{}) otto.Value

func Sanitizer

func Sanitizer(rt *otto.Otto) func(objs ...interface{}) otto.Value

func Tag

func Tag(rt *otto.Otto, tags otto.Object, id string, region string, verbose bool)

Types

type Context

type Context struct {
	Runtime *otto.Otto
	JsDir   string
	Home    string
	Verbose bool
	Args    []string
	Modules []ModuleVersion
	Version string
}

func (*Context) Throw

func (c *Context) Throw(str string)

func (*Context) Throwf

func (c *Context) Throwf(format string, a ...interface{})

type ModuleVersion

type ModuleVersion struct{ Version, Module string }

Jump to

Keyboard shortcuts

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