Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoMinorVersion ¶
func GetGoMinorVersion() int
GetGoMinorVersion returns the Go1 minor version.
Returns 0 for a developer build, panics if can't parse the version.
Ignores the revision (go1.<minor>.<revision>).
func IsUsingModules ¶
func IsUsingModules() bool
IsUsingModules returns if go modules are enabled.
It reads the current value of GO111MODULES.
func PanicOutputs ¶
PanicOutputs returns a map of the output of every subcommands.
panic is built with inlining disabled.
The subcommand "race" is built with the race detector. Others are built without. In particular "asleep" doesn't work with the race detector.
The function panics if any internal error occurs.
func PanicwebOutput ¶
func PanicwebOutput() []byte
PanicwebOutput returns the output of panicweb with inlining disabled.
The function panics if any internal error occurs.
func StaticPanicRaceOutput ¶
func StaticPanicRaceOutput() []byte
StaticPanicRaceOutput returns a constant version of 'panic race' output.
func StaticPanicwebOutput ¶
func StaticPanicwebOutput() []byte
StaticPanicwebOutput returns a constant version of panicweb output for use in benchmarks.
Types ¶
This section is empty.