Draw graphs through GO MOD GRAPH output

Overview

English | 中文

go-mod-graph-chart

build chart by go mod graph output

Install

$ go get -u github.com/PaulXu-cn/go-mod-graph-chart/gmchart

Usage

$ cd goProject
$ go mod graph | gmchart

The program will start a http server and open the url in default browser.

show

Change & Rebuild

If you has changed js code, the front-end project needs to be rebuilt,and then go install

$ npm run build 
$ go install ./gmchart

License

MIT

Comments
  • panic : runtime error: invalid memory address or nil pointer dereference

    panic : runtime error: invalid memory address or nil pointer dereference

    go mod graph | gmchart panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x8 pc=0x3d4a1d]

    goroutine 1 [running]: github.com/PaulXu-cn/go-mod-graph-chart/gosrc.BuildTree(0xc00024a000, 0x1a796, 0x209, 0xc0002c30e8, 0x201) C:/Users/xxx.sun/go/pkg/mod/github.com/!paul!xu-cn/[email protected]/gosrc/treeutil.go:103 +0x87d main.main() C:/Users/xxx.sun/go/pkg/mod/github.com/!paul!xu-cn/[email protected]/gmchart/main.go:103 +0x571

    opened by sunzip 10
  • panic: runtime error: slice bounds out of range [:-1]

    panic: runtime error: slice bounds out of range [:-1]

    panic: runtime error: slice bounds out of range [:-1]

    goroutine 1 [running]: github.com/PaulXu-cn/go-mod-graph-chart/gosrc.BuildTree(0x1256c000, 0x3eedd, 0x3a2, 0x12620934, 0x201, 0x12630000) C:/Users/admin/go/pkg/mod/github.com/!paul!xu-cn/[email protected]/gosrc/treeutil.go:85 +0xba9 main.main() C:/Users/admin/go/pkg/mod/github.com/!paul!xu-cn/[email protected]/gmchart/main.go:103 +0x415

    opened by quan-ouyang 5
  • 这个怎么解决

    这个怎么解决

    执行安装命令:go get -u github.com/PaulXu-cn/go-mod-graph-chart/gmchart 报错:package google.golang.org/protobuf/proto imports google.golang.org/protobuf/proto: import cycle not allowed

    opened by lfx923 1
  • Added go-recipes badge

    Added go-recipes badge

    Hello, Hi!! 👋🏻

    I like your project and I think broader Go community will benefit from it too.

    Thus, I added it to the curated list of Go tools.

    I hope this badge will serve as a mark of quality and appreciation to your project.

    Once again, thank you for your work!!

    ❤️

    -- Nikolay

    opened by nikolaydubina 0
  • 导出svg文件

    导出svg文件

    首先感谢作者编写的这个可视化工具.

    请问可以支持导出为svg文件吗?
    现在查看页面右键另存是html
    查看页面源码复制出来的svg标签内容另存为.svg文件, 无法打开查看

    希望可以执行命令时选项导出

    go mod graph | gmchart -o xxx.svg
    

    或者在页面右键另存格式可选为svg.

    opened by yougg 0
Owner
null
Easily customizable Social image (or Open graph image) generator

fancycard Easily customizable Social image (or Open graph image) generator Built with Go, Gin, GoQuery and Chromedp Build & Run Simply, Clone this rep

Youngbin Han 4 Jan 14, 2022
A (very) simple graph package that utilizes the Generics features in Go 1.18

A (very) simple graph package that utilizes the Generics features in Go 1.18

Will Fantom 4 May 11, 2022
A Go skia binding based on skia C library through cgo

go-skia is a Go skia binding based on skia C library through cgo. Note: the project is still in early stage, and it only supports Linux-amd64 now. The

Go101 23 Nov 7, 2022
2D rendering for different output (raster, pdf, svg)

draw2d Package draw2d is a go 2D vector graphics library with support for multiple outputs such as images (draw2d), pdf documents (draw2dpdf), opengl

llgcode 949 Nov 27, 2022
a tool to output images as RGB ANSI graphics on the terminal

imgcat Tool to output images in the terminal. Built with bubbletea install homebrew brew install trashhalo/homebrew-brews/imgcat prebuilt packages Pr

Stephen Solka 464 Dec 2, 2022
A command to output longified ascii art.

longify A command to output longified ascii art. Inspired by Tweet from @sheepla: https://twitter.com/Sheeeeepla/status/1522199846870196225 Installati

syumai 11 Sep 12, 2022
Converts 'go mod graph' output into Graphviz's DOT language

modgv 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 st

Luca Sepe 443 Nov 8, 2022
The go mod init command initializes and writes a new go.mod file in the current directory

go mod: The go mod init command initializes and writes a new go.mod file in the current directory, in effect creating a new module rooted at the curre

null 0 Nov 21, 2021
A Connected Graph Generator tool that construct graphs of some given size

graph graph is a Connected Graph Generator tool that construct graphs of some given size. Notice that it generates all possible connected, undirected

Nicolas A Perez 0 Nov 5, 2021
null 41 Oct 9, 2022
K8s-graph - Kubernetes ownerReferences graphs

k8s-graph Kubernetes ownerReferences dependency graph. Running Suppose you have

Amim Knabben 6 May 12, 2022
JSONL graph tools - Graph is represented as JSONL of nodes and edges.

JSONL graph tools - Graph is represented as JSONL of nodes and edges.

Nikolay Dubina 61 Sep 27, 2022
The DGL Operator makes it easy to run Deep Graph Library (DGL) graph neural network training on Kubernetes

DGL Operator The DGL Operator makes it easy to run Deep Graph Library (DGL) graph neural network distributed or non-distributed training on Kubernetes

Qihoo 360 43 Nov 2, 2022
This library aims to make it easier to interact with Ethereum through de Go programming language by adding a layer of abstraction through a new client on top of the go-ethereum library.

Simple ethereum client Simple ethereum client aims to make it easier for the developers to interact with Ethereum through a new layer of abstraction t

Jero 3 May 1, 2022
👷 Library for safely running groups of workers concurrently or consecutively that require input and output through channels

Examples Quickstart Multiple Go Workers Passing Fields Getting Started Pull in the dependency go get github.com/catmullet/go-workers Add the import to

Robert Catmull 147 Nov 15, 2022
Draw images in your ANSI terminal with true color

___ _____ ____ / _ \/ _/ |/_/ /____ ______ _ Made with love by Eliuk Blau / ___// /_> </ __/ -_) __/ ' \ https://github.com/eliukblau/pix

Eliuk Blau 896 Nov 26, 2022
Use Redis' MONITOR to draw things in a terminal

Redis Top Redistop uses MONITOR to watch Redis commands and shows per command and per host statistics. Because MONITOR streams back all commands, its

Factory 31 Aug 30, 2022
This package provides Go (golang) types and helper functions to do some basic but useful things with mxGraph diagrams in XML, which is most famously used by app.diagrams.net, the new name of draw.io.

Go Draw - Golang MX This package provides types and helper functions to do some basic but useful things with mxGraph diagrams in XML, which is most fa

null 2 Aug 30, 2022
A cross platform single binary tool to work with draw io files

SNIPO SNIPIO is a cross platform single binary tool to work with draw io files With snipio you can do the following operations: list all layers in a d

Felix Becker 3 Aug 30, 2022
A note taking app, that you can draw in, syncs to the cloud, and is on most platforms!

About NotDraw About · How to contribute · How to run · Trello · FAQ This is achived because I dont want to work on it anymore Structure Codebase Descr

YummyOreo 1 Jul 11, 2022