SYMBOL INDEX (197 symbols across 27 files) FILE: blush/benchmarks_test.go function BenchmarkColourise (line 14) | func BenchmarkColourise(b *testing.B) { function BenchmarkNewLocator (line 46) | func BenchmarkNewLocator(b *testing.B) { function BenchmarkFind (line 80) | func BenchmarkFind(b *testing.B) { type benchCase (line 150) | type benchCase struct function BenchmarkBlush (line 157) | func BenchmarkBlush(b *testing.B) { function benchmarkRead (line 312) | func benchmarkRead(b *testing.B, bc benchCase) { function benchmarkWriteTo (line 332) | func benchmarkWriteTo(b *testing.B, bc benchCase) { FILE: blush/blush.go type mode (line 10) | type mode constant Separator (line 14) | Separator = ": " constant DefaultLineCache (line 17) | DefaultLineCache = 50 constant DefaultCharCache (line 21) | DefaultCharCache = 1000 constant readMode (line 23) | readMode mode = iota constant writeToMode (line 24) | writeToMode type Blush (line 33) | type Blush struct method Read (line 50) | func (b *Blush) Read(p []byte) (n int, err error) { method WriteTo (line 75) | func (b *Blush) WriteTo(w io.Writer) (int64, error) { method setup (line 100) | func (b *Blush) setup(m mode) error { method decorate (line 124) | func (b *Blush) decorate(input string) (string, bool) { method readLines (line 136) | func (b *Blush) readLines() { method transfer (line 153) | func (b *Blush) transfer() { method Close (line 163) | func (b *Blush) Close() error { function lookInto (line 170) | func lookInto(f []Finder, line string) (string, bool) { function fileName (line 182) | func fileName(r io.Reader) string { FILE: blush/blush_example_test.go function ExampleBlush (line 11) | func ExampleBlush() { function ExampleBlush_Read (line 21) | func ExampleBlush_Read() { function ExampleBlush_Read_inDetails (line 32) | func ExampleBlush_Read_inDetails() { function ExampleBlush_WriteTo (line 58) | func ExampleBlush_WriteTo() { function ExampleBlush_WriteTo_copy (line 79) | func ExampleBlush_WriteTo_copy() { function ExampleBlush_WriteTo_multiReader (line 100) | func ExampleBlush_WriteTo_multiReader() { function ExampleBlush_WriteTo_multiReaderInDetails (line 115) | func ExampleBlush_WriteTo_multiReaderInDetails() { FILE: blush/blush_test.go function TestBlush (line 19) | func TestBlush(t *testing.T) { function testBlushWriteTo (line 36) | func testBlushWriteTo(t *testing.T) { function testBlushWriteToErrors (line 46) | func testBlushWriteToErrors(t *testing.T) { function testBlushWriteToNoMatch (line 83) | func testBlushWriteToNoMatch(t *testing.T) { function testBlushWriteToMatch (line 102) | func testBlushWriteToMatch(t *testing.T) { function testBlushWriteToMatchDrop (line 109) | func testBlushWriteToMatchDrop(t *testing.T) { function testBlushWriteToMatchColour (line 134) | func testBlushWriteToMatchColour(t *testing.T) { function testBlushWriteToMatchCountColour (line 158) | func testBlushWriteToMatchCountColour(t *testing.T) { function testBlushWriteToColour (line 202) | func testBlushWriteToColour(t *testing.T) { function testBlushWriteToColourNoCutMode (line 234) | func testBlushWriteToColourNoCutMode(t *testing.T) { function testBlushWriteToMultipleMatchInOneLine (line 266) | func testBlushWriteToMultipleMatchInOneLine(t *testing.T) { function testBlushClosesReader (line 297) | func testBlushClosesReader(t *testing.T) { function testBlushRead (line 316) | func testBlushRead(t *testing.T) { function testBlushReadOneStream (line 325) | func testBlushReadOneStream(t *testing.T) { function testBlushReadTwoStreams (line 360) | func testBlushReadTwoStreams(t *testing.T) { function testBlushReadHalfWay (line 386) | func testBlushReadHalfWay(t *testing.T) { function testBlushReadOnClosed (line 406) | func testBlushReadOnClosed(t *testing.T) { function testBlushReadLongOneLineText (line 429) | func testBlushReadLongOneLineText(t *testing.T) { function testBlushPrintName (line 450) | func testBlushPrintName(t *testing.T) { function testBlushStdinPrintName (line 481) | func testBlushStdinPrintName(t *testing.T) { function testBlushPrintFilename (line 506) | func testBlushPrintFilename(t *testing.T) { function testBlushReadContiniously (line 559) | func testBlushReadContiniously(t *testing.T) { function testBlushReadMiddleOfMatch (line 595) | func testBlushReadMiddleOfMatch(t *testing.T) { function testBlushReadComplete (line 619) | func testBlushReadComplete(t *testing.T) { function testBlushReadPartComplete (line 640) | func testBlushReadPartComplete(t *testing.T) { function testBlushReadPartPartOver (line 662) | func testBlushReadPartPartOver(t *testing.T) { function testBlushReadMultiLine (line 690) | func testBlushReadMultiLine(t *testing.T) { function testBlushReadWriteToMode (line 725) | func testBlushReadWriteToMode(t *testing.T) { FILE: blush/colour.go constant BgLevel (line 11) | BgLevel = 70 type RGB (line 52) | type RGB struct type Colour (line 57) | type Colour struct function Colourise (line 63) | func Colourise(input string, c Colour) string { function foreground (line 78) | func foreground(c RGB) string { function background (line 82) | func background(c RGB) string { function unformat (line 86) | func unformat() string { function colour (line 90) | func colour(red, green, blue int) int { function baseColor (line 94) | func baseColor(value, factor int) int { function colorFromArg (line 98) | func colorFromArg(colour string) Colour { function colourGroup (line 110) | func colourGroup(colour string) Colour { function stockColour (line 138) | func stockColour(colour string) Colour { function hexColour (line 163) | func hexColour(colour string) Colour { function getInt (line 190) | func getInt(hex string) int { FILE: blush/colour_test.go function TestColourise (line 11) | func TestColourise(t *testing.T) { FILE: blush/find.go type Finder (line 18) | type Finder interface function NewLocator (line 28) | func NewLocator(colour, search string, insensitive bool) Finder { type Exact (line 53) | type Exact struct method Find (line 68) | func (e Exact) Find(input string) (string, bool) { method colourise (line 75) | func (e Exact) colourise(input string, c Colour) string { method Colour (line 83) | func (e Exact) Colour() Colour { method String (line 88) | func (e Exact) String() string { function NewExact (line 59) | func NewExact(s string, c Colour) Exact { type Iexact (line 93) | type Iexact struct method Find (line 108) | func (i Iexact) Find(input string) (string, bool) { method colourise (line 115) | func (i Iexact) colourise(input string, c Colour) string { method Colour (line 126) | func (i Iexact) Colour() Colour { method String (line 131) | func (i Iexact) String() string { function NewIexact (line 99) | func NewIexact(s string, c Colour) Iexact { type Rx (line 136) | type Rx struct method Find (line 151) | func (r Rx) Find(input string) (string, bool) { method colourise (line 158) | func (r Rx) colourise(input string, c Colour) string { method Colour (line 166) | func (r Rx) Colour() Colour { function NewRx (line 142) | func NewRx(r *regexp.Regexp, c Colour) Rx { FILE: blush/find_test.go type colourer (line 12) | type colourer interface function TestNewLocatorColours (line 17) | func TestNewLocatorColours(t *testing.T) { function TestNewLocatorExact (line 69) | func TestNewLocatorExact(t *testing.T) { function TestNewLocatorIexact (line 77) | func TestNewLocatorIexact(t *testing.T) { function TestNewLocatorRx (line 85) | func TestNewLocatorRx(t *testing.T) { function TestNewLocatorRxColours (line 111) | func TestNewLocatorRxColours(t *testing.T) { function TestExactNotFound (line 120) | func TestExactNotFound(t *testing.T) { function TestExactFind (line 128) | func TestExactFind(t *testing.T) { function TestRxNotFound (line 160) | func TestRxNotFound(t *testing.T) { function TestRxFind (line 168) | func TestRxFind(t *testing.T) { function TestIexactNotFound (line 202) | func TestIexactNotFound(t *testing.T) { function TestIexact (line 210) | func TestIexact(t *testing.T) { function TestRxInsensitiveFind (line 242) | func TestRxInsensitiveFind(t *testing.T) { function TestColourGroup (line 279) | func TestColourGroup(t *testing.T) { function TestColourNewGroup (line 291) | func TestColourNewGroup(t *testing.T) { FILE: blush/helper_test.go type nopCloser (line 13) | type nopCloser struct method Close (line 18) | func (n nopCloser) Close() error { return n.closeFunc() } type badWriter (line 20) | type badWriter struct method Write (line 24) | func (b *badWriter) Write(p []byte) (int, error) { return b.writeFunc(... FILE: cmd/args.go type args (line 14) | type args struct method hasArgs (line 50) | func (a *args) hasArgs(args ...string) (found bool) { method setPaths (line 70) | func (a *args) setPaths() error { method setFinders (line 124) | func (a *args) setFinders() { function newArgs (line 27) | func newArgs(input ...string) (*args, error) { function flip (line 137) | func flip(s []string) []string { function inStringSlice (line 147) | func inStringSlice(s string, haystack []string) bool { FILE: cmd/args_test.go function TestArgs (line 13) | func TestArgs(t *testing.T) { function TestArgsPipe (line 66) | func TestArgsPipe(t *testing.T) { function TestArgsPaths (line 74) | func TestArgsPaths(t *testing.T) { function TestArgsHasArgs (line 123) | func TestArgsHasArgs(t *testing.T) { FILE: cmd/helper_test.go type stdFile (line 17) | type stdFile struct method String (line 21) | func (s *stdFile) String() string { method Close (line 28) | func (s *stdFile) Close() error { function newStdFile (line 32) | func newStdFile(t *testing.T, name string) *stdFile { function setup (line 45) | func setup(t *testing.T, args string) (stdout, stderr *stdFile) { function getPipe (line 69) | func getPipe(t *testing.T) *os.File { function argsEqual (line 81) | func argsEqual(a, b []blush.Finder) bool { FILE: cmd/main.go function Main (line 16) | func Main() { function GetBlush (line 44) | func GetBlush(input []string) (*blush.Blush, error) { FILE: cmd/main_example_test.go type colourer (line 10) | type colourer interface function ExampleGetBlush_red (line 14) | func ExampleGetBlush_red() { function ExampleGetBlush_multiColour (line 28) | func ExampleGetBlush_multiColour() { FILE: cmd/main_internal_test.go function getPipe (line 12) | func getPipe(t *testing.T) *os.File { function stringSliceEq (line 29) | func stringSliceEq(a, b []string) bool { function TestFiles (line 41) | func TestFiles(t *testing.T) { FILE: cmd/main_test.go function TestMainHelp (line 14) | func TestMainHelp(t *testing.T) { function TestPipeInput (line 21) | func TestPipeInput(t *testing.T) { function TestMainMatch (line 36) | func TestMainMatch(t *testing.T) { function TestMainMatchCut (line 64) | func TestMainMatchCut(t *testing.T) { function TestNoFiles (line 79) | func TestNoFiles(t *testing.T) { function TestColourArgs (line 86) | func TestColourArgs(t *testing.T) { function TestWithFilename (line 176) | func TestWithFilename(t *testing.T) { FILE: cmd/signal.go function WaitForSignal (line 11) | func WaitForSignal(sig chan os.Signal, exit func(int)) { FILE: cmd/signal_test.go function TestCaptureSignals (line 13) | func TestCaptureSignals(t *testing.T) { FILE: internal/reader/helper_test.go type nopCloser (line 14) | type nopCloser struct method Close (line 19) | func (n nopCloser) Close() error { return n.closeFunc() } type testCase (line 21) | type testCase struct function setup (line 26) | func setup(t *testing.T, input []testCase) []string { function inSlice (line 45) | func inSlice(niddle string, haystack []string) bool { FILE: internal/reader/reader.go type MultiReader (line 17) | type MultiReader struct method Read (line 96) | func (m *MultiReader) Read(b []byte) (n int, err error) { method Close (line 126) | func (m *MultiReader) Close() error { return nil } method FileName (line 129) | func (m *MultiReader) FileName() string { function NewMultiReader (line 24) | func NewMultiReader(input ...Conf) (*MultiReader, error) { type Conf (line 41) | type Conf function WithReader (line 46) | func WithReader(name string, r io.ReadCloser) Conf { function WithPaths (line 66) | func WithPaths(paths []string, recursive bool) Conf { type container (line 136) | type container struct method Read (line 142) | func (c *container) Read(b []byte) (int, error) { FILE: internal/reader/reader_test.go function TestWithReader (line 13) | func TestWithReader(t *testing.T) { function TestWithReaderMultipleReadersClose (line 29) | func TestWithReaderMultipleReadersClose(t *testing.T) { function TestWithReaderMultipleReadersError (line 66) | func TestWithReaderMultipleReadersError(t *testing.T) { function TestWithPathsError (line 79) | func TestWithPathsError(t *testing.T) { function TestNewMultiReaderWithPaths (line 102) | func TestNewMultiReaderWithPaths(t *testing.T) { function TestMultiReaderReadOneReader (line 123) | func TestMultiReaderReadOneReader(t *testing.T) { function TestMultiReaderReadZeroBytes (line 142) | func TestMultiReaderReadZeroBytes(t *testing.T) { function TestMultiReaderReadOneReaderMoreSpace (line 157) | func TestMultiReaderReadOneReaderMoreSpace(t *testing.T) { function TestMultiReaderReadMultipleReaders (line 171) | func TestMultiReaderReadMultipleReaders(t *testing.T) { function TestMultiReaderNames (line 205) | func TestMultiReaderNames(t *testing.T) { function TestNewMultiReaderWithPathsRead (line 235) | func TestNewMultiReaderWithPathsRead(t *testing.T) { function TestNewMultiReaderRecursive (line 265) | func TestNewMultiReaderRecursive(t *testing.T) { function TestNewMultiReaderNonRecursive (line 298) | func TestNewMultiReaderNonRecursive(t *testing.T) { FILE: internal/tools/dir.go function Files (line 14) | func Files(recursive bool, paths ...string) ([]string, error) { function unique (line 38) | func unique(fileList []string) []string { function nonBinary (line 53) | func nonBinary(fileList []string) []string { function rfiles (line 63) | func rfiles(location string) ([]string, error) { function files (line 83) | func files(location string) ([]string, error) { function isPlainText (line 102) | func isPlainText(name string) bool { FILE: internal/tools/dir_example_test.go function ExampleFiles (line 7) | func ExampleFiles() { FILE: internal/tools/dir_test.go function stringSliceEq (line 18) | func stringSliceEq(t *testing.T, a, b []string) { function inSlice (line 27) | func inSlice(niddle string, haystack []string) bool { function setup (line 36) | func setup(t *testing.T, count int) (dirs, expect []string) { function TestFilesError (line 70) | func TestFilesError(t *testing.T) { function TestFiles (line 80) | func TestFiles(t *testing.T) { function TestFilesOnSingleFile (line 97) | func TestFilesOnSingleFile(t *testing.T) { function TestFilesRecursive (line 122) | func TestFilesRecursive(t *testing.T) { function setupUnpermissioned (line 142) | func setupUnpermissioned(t *testing.T) (rootDir, fileB string) { function TestIgnoreNontPermissionedFolders (line 176) | func TestIgnoreNontPermissionedFolders(t *testing.T) { function setupBinaryFile (line 189) | func setupBinaryFile(t *testing.T) (str, name string) { function TestIgnoreNonTextFiles (line 206) | func TestIgnoreNonTextFiles(t *testing.T) { function TestUnPrintableButTextContents (line 216) | func TestUnPrintableButTextContents(t *testing.T) { function TestFilesIgnoreDirs (line 245) | func TestFilesIgnoreDirs(t *testing.T) { FILE: internal/tools/strings.go function IsPlainText (line 9) | func IsPlainText(input string) bool { FILE: internal/tools/strings_test.go function TestIsPlainText (line 11) | func TestIsPlainText(t *testing.T) { FILE: main.go function main (line 5) | func main() {