medic

package
v0.0.0-...-2759aa6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Config   *config.Config
	Warnings []Warning
	Errors   []Error
}

func Diagnose

func Diagnose(config *config.Config) *Diagnostic

func (*Diagnostic) ErrorIf

func (d *Diagnostic) ErrorIf(condition bool, message string, err error) bool

func (*Diagnostic) WarningIf

func (d *Diagnostic) WarningIf(condition bool, message string, advice string) bool

type Error

type Error struct {
	Title string
	Error error
}

type Warning

type Warning struct {
	Title  string
	Advice string
}

Jump to

Keyboard shortcuts

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