Scans a given repo for Golang, NodeJS (more comming) for dependencies.
The api functions as follows:
func GetDeps(fullPath string) ([]Dependency, Bitmask, error) {
-
fullPath:
To the repository to scan. Expects it to be present locally first.
-
Depenency:
Array of Dependency structs from dependencies.go
-
Bitmask:
A bitmask of found languages:
const (
langGolang = 1 << iota
langNodeJS
langPython
langRuby
)
-
error:
Standard Go error handling