Documentation ¶
Index ¶
- Variables
- func ToCamelCase(name string) string
- type CreateExtensionFunc
- type CreateResolverFunc
- type Environment
- type Extension
- type FileAPI
- func (self FileAPI) Download(sourceUrl string, targetPath string) error
- func (self FileAPI) Exec(name string, arguments ...string) (string, error)
- func (self FileAPI) JoinFilePath(elements ...string) string
- func (self FileAPI) TemporaryDirectory(pattern string, directory string) (string, error)
- func (self FileAPI) TemporaryFile(pattern string, directory string) (string, error)
- type FormatAPI
- func (self FormatAPI) Atob(b64 string) ([]byte, error)
- func (self FormatAPI) Btoa(bytes []byte) string
- func (self FormatAPI) BytesToString(bytes []byte) string
- func (self FormatAPI) Decode(code string, format string, all bool) (ard.Value, error)
- func (self FormatAPI) Encode(value interface{}, format string, indent string, writer io.Writer) (string, error)
- func (self FormatAPI) NewXMLDocument() *etree.Document
- func (self FormatAPI) StringToBytes(string_ string) []byte
- func (self FormatAPI) ValidateFormat(code string, format string) error
- type PrecompileFunc
- type ResolveFunc
- type ThreadSafeObject
- func (self *ThreadSafeObject) Delete(key string) bool
- func (self *ThreadSafeObject) Get(key string) goja.Value
- func (self *ThreadSafeObject) Has(key string) bool
- func (self *ThreadSafeObject) Keys() []string
- func (self *ThreadSafeObject) NewDynamicObject(runtime *goja.Runtime) *goja.Object
- func (self *ThreadSafeObject) Set(key string, value goja.Value) bool
- type UtilAPI
- func (self UtilAPI) DeepCopy(value ard.Value) ard.Value
- func (self UtilAPI) DeepEquals(a ard.Value, b ard.Value) bool
- func (self UtilAPI) Go(value goja.Value) error
- func (self UtilAPI) Hash(value ard.Value) (string, error)
- func (self UtilAPI) IsType(value ard.Value, type_ string) (bool, error)
- func (self UtilAPI) Mutex() *sync.Mutex
- func (self UtilAPI) Now() time.Time
- func (self UtilAPI) Sprintf(format string, args ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
View Source
var CamelCaseMapper camelCaseMapper
Functions ¶
func ToCamelCase ¶
Types ¶
type CreateExtensionFunc ¶ added in v0.1.32
type CreateExtensionFunc func(environment *Environment, resolve ResolveFunc) goja.Value
type CreateResolverFunc ¶ added in v0.1.32
type CreateResolverFunc func(url urlpkg.URL) ResolveFunc
type Environment ¶ added in v0.1.32
type Environment struct { Runtime *goja.Runtime URLContext *urlpkg.Context Extensions []Extension Precompile PrecompileFunc CreateResolver CreateResolverFunc // contains filtered or unexported fields }
func NewEnvironment ¶ added in v0.1.32
func NewEnvironment(urlContext *urlpkg.Context) *Environment
func (*Environment) Require ¶ added in v0.1.32
func (self *Environment) Require(id string) (*goja.Object, error)
func (*Environment) RequireURL ¶ added in v0.1.32
func (*Environment) ResolveAndRequire ¶ added in v0.1.32
func (self *Environment) ResolveAndRequire(id string, resolve ResolveFunc) (*goja.Object, error)
type Extension ¶ added in v0.1.32
type Extension struct { Name string Create CreateExtensionFunc }
type FileAPI ¶ added in v0.1.31
type FileAPI struct {
// contains filtered or unexported fields
}
func NewFileAPI ¶ added in v0.1.32
func (FileAPI) JoinFilePath ¶ added in v0.1.32
func (FileAPI) TemporaryDirectory ¶ added in v0.1.31
type FormatAPI ¶ added in v0.1.31
type FormatAPI struct{}
func (FormatAPI) BytesToString ¶ added in v0.1.31
func (FormatAPI) NewXMLDocument ¶ added in v0.1.31
func (FormatAPI) StringToBytes ¶ added in v0.1.31
type PrecompileFunc ¶ added in v0.1.32
type ThreadSafeObject ¶ added in v0.1.32
type ThreadSafeObject struct {
// contains filtered or unexported fields
}
func NewThreadSafeObject ¶ added in v0.1.32
func NewThreadSafeObject() *ThreadSafeObject
func (*ThreadSafeObject) Delete ¶ added in v0.1.32
func (self *ThreadSafeObject) Delete(key string) bool
goja.DynamicObject interface
func (*ThreadSafeObject) Get ¶ added in v0.1.32
func (self *ThreadSafeObject) Get(key string) goja.Value
goja.DynamicObject interface
func (*ThreadSafeObject) Has ¶ added in v0.1.32
func (self *ThreadSafeObject) Has(key string) bool
goja.DynamicObject interface
func (*ThreadSafeObject) Keys ¶ added in v0.1.32
func (self *ThreadSafeObject) Keys() []string
goja.DynamicObject interface
func (*ThreadSafeObject) NewDynamicObject ¶ added in v0.1.32
func (self *ThreadSafeObject) NewDynamicObject(runtime *goja.Runtime) *goja.Object
Click to show internal directories.
Click to hide internal directories.