librarydetection

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAnalyzer

func AddAnalyzer(language string, analyzer Analyzer)

AddAnalyzer allows users to add new analyzers

Types

type Analyzer

type Analyzer interface {
	ExtractLibraries(contents string) ([]string, error)
}

Analyzer is an interface for extracting various features from files Language specific implementations are at ./languages folder

func GetAnalyzer

func GetAnalyzer(language string) (Analyzer, error)

GetAnalyzer returns given analyzer for that language

type Analyzers

type Analyzers map[string]Analyzer

Analyzers is the map for all analyzers like "Go" has "GoAnalyzer", "Python" has "PythonAnalyzer" and so on.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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