1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-05 19:19:10 +08:00
otto/underscore
Steven Hartland 7009038f79
fix: linting errors (#441)
Disable new linters which aren't compatible with this code module.

Upgrade github actions to fix caching issues.

Run go mod to bring in new styling.

Remove space on nolint declarations.

Apply all changes to whitespace as required to pass goimports linter.

Only trigger checks on pull_request which works for pulls from other
forks, where as push only works from the same repo.
2022-10-08 00:12:19 +01:00
..
Makefile Upgrade underscore to 1.4.4, including tests 2013-02-04 21:58:47 -08:00
README.markdown Add Array.reduceRight (sdgoij) 2013-06-23 15:29:33 +02:00
source.go minor spacing changes for gofmt compliance 2015-02-25 21:48:07 +01:00
testify terst 2014-04-25 22:48:25 -07:00
underscore.go fix: linting errors (#441) 2022-10-08 00:12:19 +01:00

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