// +build !experimental package analysis import "go/token" // A Diagnostic is a message associated with a source location or range. // // An Analyzer may return a variety of diagnostics; the optional Category, // which should be a constant, may be used to classify them. // It is primarily intended to make it easy to look up documentation. // // If End is provided, the diagnostic is specified to apply to the range between // Pos and End. type Diagnostic struct { Pos token.Pos End token.Pos // optional Category string // optional Message string }