8000 GitHub - TyphonHill/go-mermaid: Golang Mermaid diagram generator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TyphonHill/go-mermaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Mermaid

example workflow Go Coverage

Go-Mermaid is an open-source Go language (Golang) project designed to streamline and automate the creation of Mermaid diagrams.
Mermaid is a popular diagramming and charting tool that uses a simple and intuitive text-based syntax to generate a wide variety of diagrams, including flowcharts, sequence diagrams, Gantt charts, and more.

Go-Mermaid is tailored for automation and batch diagram generation, making it an ideal choice for projects where numerous diagrams need to be created or updated consistently. Whether you're a developer, a system architect, or a documentation enthusiast, Go-Mermaid empowers you to automate the creation of Mermaid diagrams with efficiency and precision.

Instalation

go get -u github.com/TyphonHill/go-mermaid

Example

All examples are available here

package main

import (
    "fmt"

    "github.com/TyphonHill/go-mermaid/flowchart"
)

func main() {
    fc := flowchart.NewFlowchart()
    fc.Title = "Simple Flowchart"

    node1 := fc.AddNode("Start")
    node2 := fc.AddNode("End")

    link := fc.AddLink(node1, node2)
    link.Shape = flowchart.LinkShapeDotted

    fmt.Println(fc.String())
}

The example above creates the following diagram:

---
title: Simple Flowchart
---

flowchart TB
    0("Start")
    1("End")
    0 -.-> 1
Loading

Roadmap

Implement support for other Mermaid diagram types:

Mermaid supports other diagram types that are currently marked as "experimental" and as such, are subject to change. Once these diagrams leave the experimental phase, they can be added to the list above.

Contribute

Want to help? Found a bug?

  1. Do not hesitate to fork the repository and send PRs with your changes
  2. No time to code? Open a bug/feature issue

About

Golang Mermaid diagram generator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0