underscore

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 2 Imported by: 0

README

underscore

Reference License

To update the version of underscore run:

go generate

Documentation

Overview

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

import (
	_ "github.com/kubeshark/otto/underscore"
)

Every Otto runtime will now include underscore for more information see the underscore docs

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/kubeshark/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