patch

package
v0.0.0-...-21611da Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2014 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patch

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

A Patch is an intent to replace original[start:end] with replacement

func (*Patch) After

func (p *Patch) After() string

func (*Patch) Before

func (p *Patch) Before() string

type Patcher

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

func NewPatcher

func NewPatcher(filename string, find replacer, replace []byte) *Patcher

func (*Patcher) Accept

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

func (*Patcher) Done

func (p *Patcher) Done() error

func (*Patcher) Load

func (p *Patcher) Load() error

func (*Patcher) Next

func (p *Patcher) Next() *Patch

Jump to

Keyboard shortcuts

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