dsm

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Overview

Package dsm provides functions to create the Dependency Structure Matrix for a Golang project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyStructureMatrix

type DependencyStructureMatrix struct {
	Module       string    `json:"module"`       // module package
	Packages     []string  `json:"packages"`     // list of packages used by the module
	Dependencies [][]int64 `json:"dependencies"` // this matrix[i][j] represents an import of Package[i] in Package[j]
}

DependencyStructureMatrix represents a DSM

func GetDependencyStructureMatrix

func GetDependencyStructureMatrix(prj *project.ProjectInfo) (*DependencyStructureMatrix, error)

GetDependencyStructureMatrix calculates the Dependency Structure Matrix for a given Golang project.

It returns an error if it's not possible to load de DSM.

Jump to

Keyboard shortcuts

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