Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 563 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 563 Bytes

deplist

Scans a given repo for Golang, NodeJS (more comming) for dependencies.

The api functions as follows:

func GetDeps(fullPath string) ([]Dependency, Bitmask, error) {

Parameters

  • fullPath:

    To the repository to scan. Expects it to be present locally first.

Returns

  • 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