detectors

package
v0.0.0-...-eba7121 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(path string, matches []string) (bool, error)

Types

type Detector

type Detector interface {
	Detect(path string) (bool, string, error)
}

type Detectors

type Detectors struct {
	Detectors []Detector
}

func (*Detectors) GetDetectors

func (d *Detectors) GetDetectors() []Detector

type GoDetector

type GoDetector struct{}

func (*GoDetector) Detect

func (gd *GoDetector) Detect(path string) (bool, string, error)

type JsDetector

type JsDetector struct{}

func (*JsDetector) Detect

func (jd *JsDetector) Detect(path string) (bool, string, error)

type PythonDetector

type PythonDetector struct{}

func (*PythonDetector) Detect

func (pd *PythonDetector) Detect(path string) (bool, string, error)

type RubyDetector

type RubyDetector struct{}

func (*RubyDetector) Detect

func (rd *RubyDetector) Detect(path string) (bool, string, error)

type RustDetector

type RustDetector struct{}

func (*RustDetector) Detect

func (rd *RustDetector) Detect(path string) (bool, string, error)

Jump to

Keyboard shortcuts

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