embeddirective

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package embeddirective defines an Analyzer that validates //go:embed directives. The analyzer defers fixes to its parent source.Analyzer.

Index

Constants

View Source
const Doc = `` /* 289-byte string literal not displayed */
View Source
const MissingImportMessage = `must import "embed" when using go:embed directives`

source.fixedByImportingEmbed relies on this message to filter out fixable diagnostics from this Analyzer.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:             "embed",
	Doc:              Doc,
	Requires:         []*analysis.Analyzer{},
	Run:              run,
	RunDespiteErrors: true,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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