← 返回
开发者工具 中文

Golang

Build, test, lint, and format Go projects with integrated dev tooling. Use when compiling binaries, running tests, linting code, or formatting files.
构建、测试、lint、格式化 Go 项目,集成开发工具,用于编译二进制、运行测试、代码检查或文件格式化。
bytesagain3
开发者工具 clawhub v2.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 912
下载
💾 48
安装
2
版本
#latest

概述

Golang

Developer toolkit for checking, validating, generating, formatting, linting, converting, and managing Go development entries. All operations are logged with timestamps and stored locally for full traceability.

Commands

CommandUsageDescription
-----------------------------
checkgolang check Record a check entry or view recent checks
validategolang validate Record a validation entry or view recent validations
generategolang generate Record a generate entry or view recent generations
formatgolang format Record a format entry or view recent formatting operations
lintgolang lint Record a lint entry or view recent lint results
explaingolang explain Record an explain entry or view recent explanations
convertgolang convert Record a convert entry or view recent conversions
templategolang template Record a template entry or view recent templates
diffgolang diff Record a diff entry or view recent diffs
previewgolang preview Record a preview entry or view recent previews
fixgolang fix Record a fix entry or view recent fixes
reportgolang report Record a report entry or view recent reports
statsgolang statsShow summary statistics across all entry types
export `golang export json\csv\txt`Export all entries to JSON, CSV, or plain text
search golang search Search across all log files for a keyword
recentgolang recentShow the 20 most recent history entries
statusgolang statusHealth check — version, entry count, disk usage, last activity
helpgolang helpShow help with all available commands
versiongolang versionPrint version string

Each command (check, validate, generate, format, lint, explain, convert, template, diff, preview, fix, report) works the same way:

  • With arguments: Saves the input with a timestamp to .log and logs to history.log.
  • Without arguments: Displays the 20 most recent entries from .log.

Data Storage

All data is stored locally at ~/.local/share/golang/:

  • .log — Timestamped entries for each command (e.g., check.log, lint.log, format.log)
  • history.log — Unified activity log across all commands
  • export.json, export.csv, export.txt — Generated export files

No cloud, no network calls, no API keys required. Fully offline.

Requirements

  • Bash 4+ (uses set -euo pipefail)
  • Standard Unix utilities (date, wc, du, grep, head, tail, sed)
  • No external dependencies

When to Use

  1. Logging Go build and test results — Use golang check "go build ./... passed" or golang validate "all tests green on v1.4.2" to record build/test outcomes with timestamps for CI audit trails.
  2. Tracking lint and format operations — Use golang lint "golangci-lint found 3 issues in pkg/handler" and golang format "gofmt applied to cmd/" to maintain a history of code quality actions.
  3. Recording code generation and templates — Use golang generate "protobuf stubs for api/v2" and golang template "new service boilerplate created" to log what was generated and when.
  4. Searching past development notes — Use golang search "handler" to find all entries across every log file mentioning a specific package, file, or concept.
  5. Exporting development logs for review — Use golang export json to extract all logged entries as structured JSON for team reviews, retrospectives, or integration with project management tools.

Examples

# Record a check entry
golang check "go vet ./... clean on main branch"

# Record a lint finding
golang lint "unused variable in internal/cache/store.go:88"

# Log a format operation
golang format "goimports applied to all .go files"

# Record code generation
golang generate "mockgen interfaces for service layer"

# Log a fix
golang fix "resolved nil pointer in middleware/auth.go"

# View recent lint entries (no args = list mode)
golang lint

# Search all logs for a keyword
golang search "middleware"

# Export everything to JSON
golang export json

# Export to CSV for spreadsheet analysis
golang export csv

# View summary statistics
golang stats

# Health check
golang status

# View recent activity across all commands
golang recent

How It Works

Golang stores all data locally in ~/.local/share/golang/. Each command logs activity with timestamps in the format YYYY-MM-DD HH:MM|, enabling full traceability. The unified history.log records every operation with MM-DD HH:MM : format for cross-command auditing.


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-05-01 05:11 安全 安全
  • v1.0.1
    2026-03-20 04:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Thesis Helper

bytesagain3
论文写作助手。论文大纲生成、文献综述框架、摘要生成、引用格式转换、格式规范检查、答辩准备。Thesis helper with outline generation, literature review, abstract writing,
★ 1 📥 3,502
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,814
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,294