doctor

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Types

type Check

type Check struct {
	XMLName  xml.Name `xml:"check"`
	Name     string   `xml:"name,attr"`
	Status   string   `xml:"status,attr"`
	Message  string   `xml:"message,attr,omitempty"`
	Severity string   `xml:"severity,attr"`
}

type Config

type Config struct {
	XML    bool
	JSON   bool
	Plain  bool
	Pretty bool
}

type DoctorError

type DoctorError struct {
	XMLName xml.Name `xml:"error"`
	Code    int      `xml:"code,attr"`
	Msg     string   `xml:"msg,attr"`
}

type DoctorResult

type DoctorResult struct {
	XMLName   xml.Name      `xml:"doctor"`
	Timestamp int64         `xml:"timestamp,attr"`
	OS        string        `xml:"os,attr"`
	Arch      string        `xml:"arch,attr"`
	GoVersion string        `xml:"go_version,attr"`
	Checks    []Check       `xml:"check"`
	Summary   string        `xml:"summary,attr"`
	AllPassed bool          `xml:"all_passed,attr"`
	Errors    []DoctorError `xml:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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