repository

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirWalker

type DirWalker interface {
	Walk(
		ctx context.Context,
		function WalkDirFunc,
		prefixFunc WalkDirNextPrefixFunc,
		prefix, path string,
		ignoreDot bool,
		maxDepth int,
	) error
}

type FileWalker

type FileWalker interface {
	Walk(ctx context.Context, function WalkFileFunc, path, extension string, ignoreDot bool) error
}

type GitHubClient

type GitHubClient interface {
	SearchCode(ctx context.Context, query string, opt *SearchCodeOption) (SearchCodeResult, error)
	GetContent(ctx context.Context, owner, repo, path, ref string) (string, error)
}

type HttpClient

type HttpClient interface {
	Get(url string) (io.ReadCloser, error)
}

type SearchCodeItem

type SearchCodeItem struct {
	Name       string
	Path       string
	Repository string
	Fragments  []string
}

type SearchCodeOption

type SearchCodeOption struct {
	Language *string
	Repo     *string
}

type SearchCodeResult

type SearchCodeResult struct {
	Total int
	Items []SearchCodeItem
}

type WalkDirFunc

type WalkDirFunc func(name, prefix string, isLastEntry bool) error

type WalkDirNextPrefixFunc

type WalkDirNextPrefixFunc func(prefix string, isLastEntry bool) string

type WalkFileFunc

type WalkFileFunc func(path string) error

Jump to

Keyboard shortcuts

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