add-blank-import
The add-blank-import
advice inserts a new blank (_
) import in the matched node’s parent File
node. This does nothing if the target package is already imported in the file.
This can be used to ensure unsafe
is imported when using //go:linkname
directives.
Examples
add-blank-import: unsafe