magicbytes

package
v0.0.0-...-8c753bc Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileStatus = map[string]bool{}

==========

Functions

func Search(ctx context.Context, searchDirectory string, metaslice []*Meta, onMatch OnMatchFunc) error

Types

type Haystack

type Haystack struct {
	// contains filtered or unexported fields
}

type Meta

type Meta struct {
	Type   string
	Bytes  []byte
	Offset int64
}

type MyCustomError

type MyCustomError struct {
	StatusCode int
	ErrDes     string
}

=========== =====================Custom Error Type===================================================

func (*MyCustomError) Error

func (m *MyCustomError) Error() string

type OnMatchFunc

type OnMatchFunc func(path, metaType string) bool

Jump to

Keyboard shortcuts

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