计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
golang-error-handling【效率与协作】Standards for error wrapping, checking, and definition in Golang. Use when wrapping errors, defining sentinel errors, or handling errors idiomatically in Go.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
err bubble up. Wrap it with context: fmt.Errorf("failed to open file: %w", err).errors package (Is, As, Unwrap) sufficient. Avoid pkg/errors (deprecated).io.EOF, sql.ErrNoRows). Use errors.Is(err, io.EOF).error. Use errors.As(err, &target).fmt.Errorf("context: %w", err) to preserve call chain.errors.Is/errors.As; string comparison brittle._; always handle or propagate.