在Go中创建你的软件架构模型和图表。
概览
模型提供了一种用图解作为代码描述软件架构模型的方法。这种方法相比使用图形工具有许多优势,特别是: * : 每次对软件架构模型的更改都会产生提交,使实现架构决策记录变得自然而然。* : 共享架构组件的代码可以被其他软件系统导入。除了明显节省时间外,一个主要优势是确保所有引用随着共享架构组件演进自动保持最新。共享架构组件代码也可以使用传统的源代码版本控制技术进行版本控制。* : 导入共享架构图的相同机制也可用于导入共享样式定义。* : 静态代码分析允许编写工具,将软件模型与实际代码进行比较以检测差异(目前该仓库不提供此类工具)。
概述(AI 翻译)
概述
模型提供了描述软件架构模型的方法,使用 图解作为代码。这种方法相比使用以下方式带来了许多优势 图形工具,特别是:
- 通过源代码控制版本控制的内置历史:每次软件变更 架构模型会产生提交,使实现变得自然 建筑决策记录。
- 简单且一致地重用共享架构组件:代码 共享架构组件可以被其他软件导入 系统。除了明显节省时间外,一个重大优势是确保 所有引用都会自动保持与共享的更新 架构组件会不断演进。共享架构组件代码可以 也可以使用传统的源代码版本控制技术进行版本控制。
- 一致的符号和视觉风格:与导入相同的机制 共享架构图也可以用于导入共享样式 定义。
- 控制现实与图表之间的漂移能力:静态代码 分析技术支持编写工具,将软件模型与实际模型进行比较 用于检测差异的代码(本仓库不提供此类工具,在
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Model
Overview
Model provides a way to describe software architecture models using diagrams as code. This approach provides many benefit over the use of graphical tools, in particular:
- Built-in history via source control versioning: Each change to the software architecture model results in a commit making it natural to implement Architectural Decision Records.
- Simple and consistent reuse of shared architecture components: The code of shared architecture components can be imported by other software systems. Apart from the obvious time saving a major advantage is ensuring that all references are automatically kept up-to-date as the shared architecture component evolves. The shared architecture component code can be versioned using traditional source code versioning techniques as well.
- Consistent notation and visual styles: The same mechanism used to import shared architecture diagram can also be used to import shared style definitions.
- Ability to control drift between reality and diagrams: Static code analysis allows writing tools that compare the software models with actual code to detect discrepencies (this repo does not provide such a tool at this time).
The Model DSL is implemented in Go and follows the
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add goadesign/model