Documentation ¶
Overview ¶
Package source dumps the source code of the current binary to standard output.
It adds the -source flag, that should call the function source.Dump(), for this the binary's source needs to have a go embed directive:
//go:embed *.go var code embed.FS // ... if *source.Flag { source.Dump(code) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flag = flag.Bool("source", false, "dump source code to standard output")
Flag is the -source flag that gets added to the default set of flags.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.