ag

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHits

func NewHits(text string) []*pb.Hit

func NewMate

func NewMate(text string) *pb.Mate
Example
package main

import (
	"fmt"

	"github.com/xuender/grephub/app/ag"
)

func main() {
	fmt.Println(ag.NewMate("26;12 2,18 2:   github.com/goccy/go-json v0.10.2 // indirect").Ack())

}
Output:

26;12 2,18 2:   github.com/goccy/go-json v0.10.2 // indirect

Types

type Ag

type Ag struct {
	grep.Grep
}

func NewAg

func NewAg() *Ag

func (*Ag) Cmd

func (p *Ag) Cmd(query *pb.Query) (string, []string)

func (*Ag) Install

func (p *Ag) Install() error

func (*Ag) Search

func (p *Ag) Search(_ *pb.Query, reader *bufio.Reader, acks chan<- *pb.Ack)

Jump to

Keyboard shortcuts

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