Documentation ¶
Index ¶
- func AppendTag(args []string, tag string) []string
- func CallersModule() *packages.Module
- func CallersPackage(mode packages.LoadMode) *packages.Package
- func CgoSupported(t toolchain.Target) bool
- func CleanCache()
- func SetShouldCleanCache()
- func Setup(c Config)
- func ShouldCleanCache() bool
- func ValidTarget(t toolchain.Target) bool
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallersModule ¶
CallersModule is a convenience function that returns the packages.Module of the package of the function that called CallersModule. It is effectively CallersPackage(packages.NeedModule).Module.
func CallersPackage ¶
CallersPackage is a convenience function that returns the packages.Package of the package of the function that called CallersPackage.
func CgoSupported ¶
func SetShouldCleanCache ¶
func SetShouldCleanCache()
SetShouldCleanCache signals that the go cache should be cleared. This is useful for packages to signal that the go cache should be cleared due to how things work with cgo.
func ShouldCleanCache ¶
func ShouldCleanCache() bool
ShouldCleanCache returns true when SetShouldCleanCache() has been called.
func ValidTarget ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.