search

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MB holds the number of bytes in a megabyte
	MB = 1000000
)

Variables

This section is empty.

Functions

func ListDirNames

func ListDirNames(path string) []string

ListDirNames lists all Directories for a type of extension.

Types

type Context

type Context struct {
	ExtensionType    string
	FileType         string
	ExtWhitelist     []string
	WorkingDirectory string
	Stats            *stats.Stats
}

Context ...

type Match

type Match struct {
	Extension string
	Filename  string
	Path      string
	Line      int
	Text      string
}

Match contains details for a search match.

type Search struct {
	Results []Match
	// contains filtered or unexported fields
}

Search ...

func Setup

func Setup(input string, ctx *Context) *Search

Setup ...

func (*Search) Run

func (s *Search) Run() error

Run ...

Jump to

Keyboard shortcuts

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