Help us shape the future of Go! Take the 2026 Go Developer Survey

js

package
v0.153.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchPackage

type BatchPackage interface {
	Groups() map[string]resource.Resources
}

BatchPackage holds a group of JavaScript resources.

type Batcher

type Batcher interface {
	Build(context.Context) (BatchPackage, error)
	Config(ctx context.Context) OptionsSetter
	Group(ctx context.Context, id string) BatcherGroup
}

Batcher is used to build JavaScript packages.

type BatcherClient

type BatcherClient interface {
	New(id string) (Batcher, error)
	Store() *maps.Cache[string, Batcher]
}

BatcherClient is used to do JS batch operations.

type BatcherGroup

type BatcherGroup interface {
	Instance(sid, iid string) OptionsSetter
	Runner(id string) OptionsSetter
	Script(id string) OptionsSetter
}

BatcherGroup is a group of scripts and instances.

type OptionsSetter

type OptionsSetter interface {
	SetOptions(map[string]any) string
}

OptionsSetter is used to set options for a batch, script or instance.

Directories

Path Synopsis
Package esbuild provides functions for building JavaScript resources.
Package esbuild provides functions for building JavaScript resources.

Jump to

Keyboard shortcuts

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