diag
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package diag contains diagnostics helpers. These implementations areintentionally outside the public API.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeDiagnostics¶
type Diagnostics []*tfprotov6.Diagnostic
Diagnostics is a collection of Diagnostic.
func (Diagnostics)ErrorCount¶
func (dDiagnostics) ErrorCount()int
ErrorCount returns the number of error severity diagnostics.
func (Diagnostics)Log¶
func (dDiagnostics) Log(ctxcontext.Context)
Log will log every diagnostic:
- Error severity at ERROR level
- Warning severity at WARN level
- Invalid/Unknown severity at WARN level
func (Diagnostics)WarningCount¶
func (dDiagnostics) WarningCount()int
WarningCount returns the number of warning severity diagnostics.