depmanager

package
v0.0.0-...-18e2c3c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 14 Imported by: 0

README

depmanager

depmanager is teh package that handles all operations that relate to identifying and resolving dependencies.

Testing

The package contains some sample test files and a directory that serves as a miniature go project for testing the higher level functionalities

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalDirMap map[string]bool = make(map[string]bool)

GlobalDirMap is a map of all possible directory paths in the entire project scope

View Source
var GlobalFileHashMap map[string][]byte = make(map[string][]byte)

GlobalFileHashMap is a map of files and the hashes of their imports. It is used to determine when to rebuild the dependency array(i.e when the imports change)

View Source
var GlobalPkgMap map[string]string = make(map[string]string)

GlobalPkgMap is the map of all imported packages in the project files to the dir file paths

Functions

func BuildDeps

func BuildDeps(dir string)

BuildDeps takes a file and returns a list of the dependencies of the file along with their dependencies

func BuildGlobalDirMap

func BuildGlobalDirMap(currDir string) error

BuildGlobalDirMap is a function that constructs a map that contains all the files and directories in the currDir argument passed to it

func EmptyPkgMap

func EmptyPkgMap()

func FetchFiles

func FetchFiles(pkg string) ([]string, error)

FetchFiles is a function that scans a directory and returns an array of the path of all the files in the dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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