计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
golang-logging【效率与协作】Standards for structured logging and observability in Golang. Use when adding structured logging or tracing to Go services.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
type ctxKey string) for storing and retrieving request-scoped logger attributes.log.Fatal: Avoid terminating apps inside libraries. Return errors instead; only main() should handle process exit.log/slog (Recommended Stdlib): Stdlib since Go 1.21. Fast, structured, zero-dep.uber-go/zap): Production-grade structured logger for high-throughput microservices.main() with standard JSON output.logger.FromContext(ctx)) or constructor injection.See slog setup and usage examples
context.WithValue(ctx, "logger", l) with raw string keys.main() should call os.Exit.