visitor

package
v0.0.0-...-2682498 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(owner, repo, sha string, v FileCallback) error

func Hunks

func Hunks(ctx context.Context, owner, repo string, num int, v HunkCallback) error

Types

type FileCallback

type FileCallback func(filename string, reader io.Reader) (VisitControl, error)

type HunkCallback

type HunkCallback func(filename string, hunks []*diff.Hunk) (VisitControl, error)

type VisitControl

type VisitControl string

VisitControl is an enum that determines whether visitation should continue or cease after each callback.

const (
	Continue VisitControl = "continue"
	Break    VisitControl = "break"
)

Jump to

Keyboard shortcuts

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