search

package
v0.0.0-...-c220456 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("origin of selector is not found")

Functions

func IsArtifactFile

func IsArtifactFile(name string) bool

Types

type Result

type Result interface {
	String() string
	Unpack([]byte) (interface{}, error)
}

func SearchDirectory

func SearchDirectory(dir string, selector [4]byte) (Result, error)

func SearchFile

func SearchFile(filepath string, selector [4]byte) (Result, error)

Jump to

Keyboard shortcuts

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