Documentation ¶
Index ¶
- Constants
- Variables
- func BlockMd5(file *os.File, size int64, hashed hash.Hash) (string, error)
- func Exec(do func() error)
- func Files(folder string) ([]string, error)
- func HexDecode(s string) []byte
- func HexDump(path string) (string, error)
- func HexEncode(s string) []byte
- func IsDir(path string) bool
- func IsFile(path string) bool
- func Md5(filepath string) (string, error)
- func OutFileString(out string, _ *Scanner, hexStr string)
- func Output(out string, scanner *Scanner, res []Result)
- func SaveFile(out string, scanner *Scanner, res []ResultElement)
- type HexMatcher
- type Matcher
- type Md5Matcher
- type Ref
- type Result
- type ResultElement
- type Scanner
- func (s *Scanner) HexDump() (string, error)
- func (s *Scanner) List() ([]Result, error)
- func (*Scanner) Output(writer io.Writer, res []Result) error
- func (*Scanner) SaveAs(writer io.Writer, res []ResultElement) error
- func (s *Scanner) Search(code string) ([]Result, error)
- func (s *Scanner) SetMatcher(m Matcher)
- func (s *Scanner) SetPath(path string)
Constants ¶
View Source
const (
// Application version information
Version = "0.1.3"
)
Variables ¶
View Source
var ( ErrNotIsDir = errors.New("the current file is not a directory") NilString = "" )
Functions ¶
func OutFileString ¶
OutFileString output content to the specified file
func SaveFile ¶
func SaveFile(out string, scanner *Scanner, res []ResultElement)
Types ¶
type HexMatcher ¶
type HexMatcher struct{}
type Result ¶
type Result struct { Index int `json:"index,omitempty"` Path string `json:"path,omitempty"` Code string `json:"code,omitempty"` }
Result content scan results
type ResultElement ¶
type Scanner ¶
Scanner universal scanner
func (*Scanner) SetMatcher ¶
SetMatcher setting matcher scanner
Click to show internal directories.
Click to hide internal directories.