Categorygithub.com/rarnu/goscript
modulepackage
1.3.0
Repository: https://github.com/rarnu/goscript.git
Documentation: pkg.go.dev

# README

goscript

# Packages

Package ast declares types representing a JavaScript AST.
No description provided by the author
Package file encapsulates the file abstractions used by the ast & parser.
Package ftoa provides ECMAScript-compliant floating point number conversion to string.
No description provided by the author
No description provided by the author
Package parser implements a parser for JavaScript.
No description provided by the author
Package token defines constants representing the lexical tokens of JavaScript (ECMA5).
Package unistring contains an implementation of a hybrid ASCII/UTF-16 string.

# Functions

AssertConstructor checks if the Value is a constructor and returns a Constructor.
AssertFunction checks if the Value is a function and returns a Callable.
Compile creates an internal representation of the JavaScript code that can be later run using the Runtime.RunProgram() method.
CompileAST creates an internal representation of the JavaScript code that can be later run using the Runtime.RunProgram() method.
No description provided by the author
No description provided by the author
IsInfinity returns true if the supplied is (+/-)Infinity.
IsNaN returns true if the supplied value is NaN.
IsNull returns true if the supplied Value is null.
IsUndefined returns true if the supplied Value is undefined.
MustCompile is like Compile but panics if the code cannot be compiled.
NaN returns a JS NaN value.
NegativeInf returns a JS -Inf value.
New creates an instance of a Javascript runtime that can be used to run code.
NewSharedDynamicArray is similar to Runtime.NewDynamicArray but the resulting Object can be shared across multiple Runtimes.
NewSharedDynamicObject is similar to Runtime.NewDynamicObject but the resulting Object can be shared across multiple Runtimes.
No description provided by the author
Null returns JS null value.
Parse takes a source string and produces a parsed AST.
PositiveInf returns a JS +Inf value.
TagFieldNameMapper returns a FieldNameMapper that uses the given tagName for struct fields and optionally uncapitalises (making the first letter lower case) method names.
No description provided by the author
UncapFieldNameMapper returns a FieldNameMapper that uncapitalises struct field and method names making the first letter lower case.
Undefined returns JS undefined value.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ArrayBuffer is a Go wrapper around ECMAScript ArrayBuffer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Promise is a Go wrapper around ECMAScript Promise.
No description provided by the author
Proxy is a Go wrapper around ECMAScript Proxy.
ProxyTrapConfig provides a simplified Go-friendly API for implementing Proxy traps.
No description provided by the author
No description provided by the author
No description provided by the author
*Symbol is a Value containing ECMAScript Symbol primitive.

# Interfaces

AsyncContextTracker is a handler that allows to track an async execution context to ensure it remains consistent across all callback invocations.
DynamicArray is an interface representing a handler for a dynamic array Object.
DynamicObject is an interface representing a handler for a dynamic Object.
FieldNameMapper provides custom mapping between Go and JavaScript property names.
JsonEncodable allows custom JSON encoding by JSON.stringify() Note that if the returned value itself also implements JsonEncodable, it won't have any effect.
Value represents an ECMAScript value.

# Type aliases

No description provided by the author
Callable represents a JavaScript function that can be called from Go.
Constructor is a type that can be used to call constructors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author