gomodgraph

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	From string
	To   string
}

type GoModGraphParser

type GoModGraphParser struct{}

GoModGraphParser builds graph from output of `go mod graph` This is conveneint if caller can call `go mod graph` by himself.

func (GoModGraphParser) Parse

func (c GoModGraphParser) Parse(input io.Reader) (Graph, error)

type Graph

type Graph struct {
	Modules []Node
	Edges   []Edge
}

type Node

type Node struct {
	ModuleName string
}

Jump to

Keyboard shortcuts

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