• Stars
    star
    474
  • Rank 89,173 (Top 2 %)
  • Language
    Go
  • License
    BSD 3-Clause "New...
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Converts 'go mod graph' output into Graphviz's DOT language

modgv

Go Report Card     Go API Reference     Mentioned in Awesome Go

Converts 'go mod graph' output into GraphViz's DOT language.

  • takes no options or arguments
  • it reads the output generated by “go mod graph” on stdin
  • generates a DOT language and writes to stdout

Usage:

go mod graph | modgv | dot -Tpng -o graph.png

For each module:

  • the node representing the greatest version (i.e., the version chosen by Go's MVS algorithm) is colored green
  • other nodes, which aren't in the final build list, are colored grey

Installation

From binary releases (macOS, Windows, Linux)

memo currently provides pre-built binaries for the following:

  • macOS (Darwin)
  • Windows
  • Linux
  1. Download the appropriate version for your platform from memo releases.

  2. Once downloaded unpack the archive (zip for Windows; tarball for Linux and macOS) to extract the executable binary.

  3. If you want to use from any location you must put the binary executable to your Path or add the directory where is it to the environment variables.

Using Go toolchain

git clone https://github.com/lucasepe/modgv.git
cd modgv
go install

Here 👉 https://graphviz.gitlab.io/download/ how to install GraphViz for your OS.

Sample output (PNG)

go mod graph | modgv | dot -Tpng -o graph.png


Sample output (PDF with clickable links to module docs)

go mod graph | modgv | dot -Tps2 -o graph.ps
ps2pdf graph.ps graph.pdf

More Repositories

1

draft

Generate High Level Cloud Architecture diagrams using YAML syntax.
Go
572
star
2

yml2dot

Turn YAML into beautiful Graph
Go
132
star
3

jumble

Create (not just) diagrams stitching, connecting and labelling images on a grid using HCL syntax (like terraform!).
Go
105
star
4

crumbs

Turn asterisk-indented text lines into mind maps
Go
101
star
5

codename

Generate random, pronounceable, sometimes even memorable, "superhero like" codenames - just like Docker does with container names.
Go
100
star
6

tiles

Commandline tool that makes building tilesets and rendering static tilemaps super easy!
Go
51
star
7

lib_mysqludf_haversine

MySQL UDF to compute the Haversine formula
C
46
star
8

go-ps4

Search your favorite PS4 games from Playstation Store using the Command Line
Go
44
star
9

g2d

Craft beautiful geometric art using code.
Go
43
star
10

using-client-go

Source code related to my Golang Notebook "Using client-go"
Go
30
star
11

tbd

"to be defined" - a really simple way to create text templates with placeholders
Go
24
star
12

grasp

Create strong passwords using words that are easy for you to remember. A password manager that does not require any type of storage
Go
22
star
13

uri

A commandline tool to resolve URI Templates expressions as specified in RFC 6570.
Go
17
star
14

pwsafe

Cross Platform simple and secure password management from commandline.
Go
16
star
15

yo

An alternative syntax to generate YAML (or JSON) from commandline. => https://youtu.be/QL6DsCLFQ30
Go
10
star
16

clon

A convenient syntax to generate JSON (or YAML) for commandline "mumbo-jumbo".
Go
9
star
17

gptcli

An interactive ChatGPT client featuring shortcuts and auto-complete.
Go
7
star
18

kvs

KVS is a commandline tool to store and organize key-value data on your local file system.
Go
6
star
19

dot

Go package for writing Graph descriptions using the Graphviz DOT language
Go
6
star
20

slackify

Upload files to your preferred Slack channels using CLI or pipe in stdin
Go
3
star
21

memo

Store and organize notes on your local file system.
Go
3
star
22

locker

Store secrets on your local file system.
Go
3
star
23

lib_mysqludf_qrencode

MySQL UDF for QRCode generation
C
2
star
24

yamldo

Create YAML documents from a directory tree or a ZIP archive.
Go
2
star
25

local-container-registry

Create a local development environment to pull/push your images without relying on external services.
Makefile
1
star
26

expose

Markdown Driven Slides Viewer
Go
1
star
27

terraform-provider-codename

The Terraform Codename provider is used to generate random _"superhero like"_ codenames.
Go
1
star
28

xdg

Go
1
star
29

giso

isometric graphics library
Go
1
star
30

mini

Parse (sort of) INI files like "flag" package in Go.
Go
1
star
31

nginx_apikey_access_filter_module

Nginx filter to restrict the access at your backend APIs
1
star
32

image-cloner

kubernetes controller that watches the Deployments and “caches” the images by re-uploading to your own registry repository and reconfiguring the applications to use these copies
Go
1
star
33

markdown

A CommonMark-compliant markdown parser and renderer in Go.
Go
1
star
34

gg

Go Graphics - 2D rendering in Go with a simple API.
Go
1
star
35

todoist

A Go library for Todoist's REST API
Go
1
star
36

totp

Simple library to generate TOTP codes and parse TOTP URIs
Go
1
star
37

boilr

Projects and text templates using ${var} expansion syntax.
Go
1
star
38

strcase

Utilities for converting strings between different cases
Go
1
star
39

spinner

Simple activity indicator for your command line tools.
Go
1
star
40

envsubst

Go package emulates bash environment variable substitution
Go
1
star