var doc … var Analyzer … const FixCategory … func run(pass *analysis.Pass) (interface{ … } // embedDirectiveComments returns all comments in f that contains a //go:embed directive. func embedDirectiveComments(f *ast.File) []*ast.Comment { … } // nextVarSpec returns the ValueSpec for the variable declaration immediately following // the go:embed comment, or nil if the next declaration is not a variable declaration. func nextVarSpec(com *ast.Comment, f *ast.File) *ast.ValueSpec { … } // embeddableType in go:embed directives are string, []byte or embed.FS. func embeddableType(o types.Object) bool { … }