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

wire

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package wire generates plugin wiring and an optional registry from manifests and updates an optional package.json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(root string, cfg Config) error

Run writes the Go and TypeScript wiring, optional registry and optional package.json from the manifests under root.

Types

type Config

type Config struct {
	SDKImport    string
	FrontendSDK  string
	GoWiringPath string
	TSWiringPath string
	License      string
	TSLicense    string
	Roots        []string

	GoRegistryPath    string
	GoRegistryPackage string

	// PackageJSONPath is the optional slash path of a package.json that depends on each frontend, listed in pluginwire.
	PackageJSONPath string

	// Reserved lists ids no plugin may take.
	Reserved []string
}

Config parameterizes generation for the consuming application.

Jump to

Keyboard shortcuts

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