我在 Go 语言里的第一个项目是一个终端仪表盘(这编程语言真棒)

4作者: vinserello9 个月前
刚刚完成了我的第一个 Go 项目,哇,这真是一门语言。我是一名 Web 开发人员,但学习过 C 和 C++:Go 感觉就像一个聪明、极简主义的表亲,它删除了冗余,但保留了强大的功能。 * 编译速度极快 * 语法简洁、可预测 * 工具使用起来简直完美(例如 go run) 为了试水,我构建了一些有趣的东西: Datacmd,一个 CLI 工具,只需一个命令,就能将 CSV/JSON/API 数据转换成漂亮的终端仪表盘。 没有 GUI。只有纯粹的终端魔力: datacmd --generate --source=data.csv 支持饼图、仪表、表格、实时系统指标,并且基于 termdash 构建。 我发现 termdash 缺少饼图、表格和雷达图,所以我尝试自己实现。 GitHub:github.com/VincenzoManto/datacmd 欢迎提供反馈和 PR(可能有很多 bug),我很乐意将其发展成为终端开发人员必备的工具。
查看原文
Just wrapped up my first Go project and wow, what a language. I&#x27;m a WebDev but I studied both C and C++: Go feels like the smart, minimalist cousin that cuts the fluff but keeps the power.<p>- Compilation is instant - Syntax is clean and predictable - The tooling is chef&#x27;s kiss (go run for example)<p>To test the waters, I built something fun:<p>Datacmd that is a CLI tool that turns CSV&#x2F;JSON&#x2F;API data into beautiful terminal dashboards with a single command.<p>No GUI. Just pure terminal magic:<p>datacmd --generate --source=data.csv Supports pie charts, gauges, tables, live system metrics, and it&#x27;s built on top of termdash.<p>I see termdash was missing pie charts, tables and radar chart, so I tried implementing myself.<p>GitHub: github.com&#x2F;VincenzoManto&#x2F;datacmd Feedback and PRs welcome (probably there a lot of bugs), I’d love to grow this into a go-to tool for devs who live in the terminal.