golang

package
v0.0.0-...-884b522 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendTag

func AppendTag(args []string, tag string) []string

func CallersModule

func CallersModule() *packages.Module

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

func CallersPackage(mode packages.LoadMode) *packages.Package

CallersPackage is a convenience function that returns the packages.Package of the package of the function that called CallersPackage.

func CgoSupported

func CgoSupported(t toolchain.Target) bool

func CleanCache

func CleanCache()

CleanCache is a convenience function that cleans the go cache.

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 Setup

func Setup(c Config)

func ShouldCleanCache

func ShouldCleanCache() bool

ShouldCleanCache returns true when SetShouldCleanCache() has been called.

func ValidTarget

func ValidTarget(t toolchain.Target) bool

Types

type Config

type Config struct {
	Target toolchain.Target
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL