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

shim

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(command, path string, options ...Option) error

New create a new shim for command to the given path. Optionally rename the original command and output a map of new->old to commands.json.

Types

type Option

type Option func(*shimOpts)

func WithRenameOriginal

func WithRenameOriginal(mapPath string) Option

WithRenameOriginal renames the original command to <command>.bak.

Jump to

Keyboard shortcuts

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