Versions in this module Expand all Collapse all v1 v1.0.0 Sep 21, 2026 Changes in this version + const DefaultDialTimeout + const DefaultFallbackKind + func FileGID(path string) int + func InGroup(gid int) bool + func KindOf(err error) string + func Wrap(kind string, err error) error + type Advice struct + CheckCommand string + FixCommand string + Suggestion string + type Check interface + Run func(ctx context.Context) Result + type CheckFunc func(ctx context.Context) Result + func (f CheckFunc) Run(ctx context.Context) Result + type Classifier struct + Fallback Advice + FallbackKind string + Rules []Rule + func (c Classifier) Diagnose(err error) Diagnosis + type Diagnosis struct + Error string + Kind string + type Error struct + Err error + Kind string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Level string + const LevelError + const LevelOK + const LevelWarn + type NamedCheck interface + Name func() string + func Named(name string, f func(ctx context.Context) Result) NamedCheck + type Result struct + Hint string + Level Level + Message string + Name string + func DirWritable(name, dir string) Result + func Fail(name, message, hint string) Result + func MissingCommands(name, where string, missing []string) Result + func OK(name, message string) Result + func PathExists(name, path, hint string) Result + func SocketAccessible(name, path string) Result + func SubdirsPrivate(name string, dirs []string) Result + func TCPReachable(ctx context.Context, name, addr string, timeout time.Duration) Result + func Warn(name, message, hint string) Result + func (r Result) Failed() bool + func (r Result) String() string + type Results []Result + func Run(ctx context.Context, checks ...Check) Results + func (rs Results) Log(logf func(format string, args ...any)) + func (rs Results) OK() bool + func (rs Results) Problems() Results + func (rs Results) SortedByLevel() Results + func (rs Results) String() string + func (rs Results) Worst() Level + type Rule struct + Kind string + Substrings []string