thewizzy / deplist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Go 100.0%