diagnose

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Name    string `json:"name"`
	Status  Status `json:"status"`
	Message string `json:"message"`
	Fix     string `json:"fix,omitempty"`
}

func Fail

func Fail(name, message, fix string) Check

func Pass

func Pass(name, message string) Check

func Warn

func Warn(name, message, fix string) Check

type Result

type Result struct {
	OK     bool    `json:"ok"`
	Checks []Check `json:"checks"`
}

func Run

func Run() Result

type Status

type Status string
const (
	StatusPass Status = "pass"
	StatusFail Status = "fail"
	StatusWarn Status = "warn"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL