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.
Click to show internal directories.
Click to hide internal directories.