patcher

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPatchers

func ApplyPatchers(patchers []Patcher, outputPath string, content string) (string, error)

Types

type GoPackagePatcher

type GoPackagePatcher struct {
	// contains filtered or unexported fields
}

func NewGoPackagePatcher

func NewGoPackagePatcher(goModule string) *GoPackagePatcher

func (*GoPackagePatcher) Patch

func (p *GoPackagePatcher) Patch(outputPath, content string) (string, error)

type Patcher

type Patcher interface {
	Patch(outputPath, content string) (string, error)
}

Jump to

Keyboard shortcuts

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