underscore

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: GPL-3.0, MIT Imports: 1 Imported by: 3

README

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()
}

Usage

func Disable
func Disable()

Disable underscore runtime inclusion.

func Enable
func Enable()

Enable underscore runtime inclusion.

func Source
func Source() string

Source returns the underscore source.

-- godocdown http://github.com/robertkrimen/godocdown

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable()

Disable underscore runtime inclusion.

func Enable

func Enable()

Enable underscore runtime inclusion.

func Source

func Source() string

Source returns the underscore source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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