otto: github.com/robertkrimen/otto/underscore Index | Files

package underscore

import "github.com/robertkrimen/otto/underscore"

Package underscore contains the source for the JavaScript utility-belt library.

import (
	_ "github.com/robertkrimen/otto/underscore"
)
// Every Otto runtime will now include underscore

http://underscorejs.org

https://github.com/documentcloud/underscore

By importing this package, you'll automatically load underscore every time you create a new Otto runtime.

To prevent this behavior, you can do the following:

import (
	"github.com/robertkrimen/otto/underscore"
)

func init() {
	underscore.Disable()
}

Index

Package Files

source.go underscore.go

func Disable Uses

func Disable()

Disable underscore runtime inclusion.

func Enable Uses

func Enable()

Enable underscore runtime inclusion.

func Source Uses

func Source() string

Source returns the underscore source.

Package underscore imports 1 packages (graph) and is imported by 189 packages. Updated 2016-07-16. Refresh now. Tools for package owners.