search

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

© Ben Garrett https://github.com/bengarrett/dupers

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoArgs  = errors.New("request is missing arguments")
	ErrNoFlags = errors.New("no command flags provided")
	ErrSearch  = errors.New("search request needs an expression")
)

Functions

func CmdErr

func CmdErr(lenArgs int, test bool) error

CmdErr parses the arguments of the search command.

func Compare

func Compare(db *bolt.DB, f *cmd.Flags, term string, buckets []string) (*database.Matches, error)

func Error

func Error(err error) error

Error parses the errors from search compares.

Types

This section is empty.

Jump to

Keyboard shortcuts

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