nodego

package module
v0.0.0-...-0118f93 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2014 License: MIT Imports: 4 Imported by: 0

README

nodego

Node.js in golang (experimental, based on node v0.11.13).

Progress

Name                    Type                Priority    Progress
----------------------------------------------------------------
environment             core                *****       0%
process                 core                *****       0%
----------------------------------------------------------------
constants               core binding        *****       0%
natives                 core binding        *****       0%
...

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SOURCE = `` /* 24006-byte string literal not displayed */

Functions

func Asset

func Asset(name string) []byte

func NewProcess

func NewProcess(vm *otto.Otto) *otto.Object

Create a new process with below properties:

  • env
  • nextTick x
  • argv
  • _eval
  • execArgv
  • _forceRepl
  • exit x
  • stdin x
  • binding
  • emit
  • _exiting x
  • tickCallback x
  • cwd
  • _print_eval
  • on x
  • reallyExit
  • send
  • _rawDebug
  • platform
  • moduleLoadList

func NodeModule

func NodeModule(name string, loader ModuleLoader)

NODE_MODULE(module_name, Initialize)

func ThrowError

func ThrowError(vm *otto.Otto, errorType, msg string)

func ThrowTypeError

func ThrowTypeError(vm *otto.Otto, msg string)

Types

type Environment

type Environment struct {
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment() *Environment

func (*Environment) Run

func (env *Environment) Run()

type ModuleLoader

type ModuleLoader func(vm *otto.Otto) otto.Value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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