cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.4.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

internal/discovery/discovery.go

32lines · modecode

1package discovery
2
3type File struct {
4 Path string
5 Commits []string
6}
7
8type FileFindResults interface {
9 Results() []File
10 Paths() []string
11 Commits() []string
12 HasCommit(commit string) bool
13}
14
15type FileFinder interface {
16 Find(...string) (FileFindResults, error)
17}
18
19type Line struct {
20 Path string
21 Position int
22 Commit string
23}
24
25type LineFindResults interface {
26 Results() []Line
27 HasLines(lines []int) bool
28}
29
30type LineFinder interface {
31 Find(string) (LineFindResults, error)
32}
33