const runAsDriverEnv … // RunIfChild runs the current process as a go/packages driver, if configured // to do so by the current environment (see [Env]). // // Otherwise, RunIfChild is a no op. func RunIfChild() { … } // Env returns additional environment variables for use in [packages.Config] // to enable the use of drivertest as the driver. // // t abstracts a *testing.T or log.Default(). func Env(t interface{ … } func main() { … }