# cdor **Repository Path**: rdor/cdor ## Basic Information - **Project Name**: cdor - **Description**: Generate diagrams with Go+/Go code. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-07 - **Last Updated**: 2026-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cdor Go library for generating diagrams, powered by [D2](https://d2lang.com). ![cdor](diagram.svg) Describe diagrams in Go code (no custom DSL). It also adds helpers (e.g. rendering JSON as a diagram view). ## Install ```bash go get github.com/zrcoder/cdor@latest ``` ## Quick example ```go package main import "github.com/zrcoder/cdor" func main() { c := cdor.New() c.Direction(c.Right()) c.Con("Go", "D2").Label("cdor") _ = c.SaveFile("diagram.svg") } ``` ## Notes - API is Go-first; see `example_test.go` for more usage. - Output is SVG (via D2).