scanner

package
v0.0.0-...-bfb5a2a Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Scanner)

func WithExcludePaths

func WithExcludePaths(paths []string) Option

type Scanner

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

func New

func New(opts ...Option) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(results chan apiclient.File, paths ...string) (err error)

Scan scans the given paths and returns the results. Path can be either directory or file

Jump to

Keyboard shortcuts

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