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

patch

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	RepoDir         string
	OutDir          string
	DefaultLanguage uniast.Language
}

type Patch

type Patch struct {
	Id        uniast.Identity
	Codes     string
	File      string
	Type      uniast.NodeType
	AddedDeps []uniast.Identity
}

type PatchNode

type PatchNode struct {
	uniast.Identity
	uniast.FileLine
	Codes string
	File  *uniast.File
}

type Patcher

type Patcher struct {
	Options
	// contains filtered or unexported fields
}

func NewPatcher

func NewPatcher(repo *uniast.Repository, opts Options) *Patcher

func (*Patcher) Flush

func (p *Patcher) Flush() error

func (*Patcher) GetPatchNodes

func (p *Patcher) GetPatchNodes() Patches

func (*Patcher) Patch

func (p *Patcher) Patch(patch Patch) error

func (*Patcher) SetPatchNodes

func (p *Patcher) SetPatchNodes(ps Patches)

func (*Patcher) SetRepo

func (p *Patcher) SetRepo(repo *uniast.Repository)

type Patches

type Patches map[string][]PatchNode

Jump to

Keyboard shortcuts

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