Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveInjectedStrings ¶
func ResolveInjectedStrings(pkg *types.Package, injected map[string]string) (map[*types.Var]string, error)
ResolveInjectedStrings maps fully-qualified -ldflags=-X injections to the corresponding package variable objects for the provided package. Entries that do not belong to the package are ignored.
func Sanitize ¶
Sanitize extracts plaintext -X assignments and replaces them with empty assignments so that the Go linker never observes the original values. The returned slice is a sanitized copy of the provided flags, and the map contains the intercepted assignments keyed by fully-qualified variable name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.