github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/not-internal/work/testgo.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file contains extra hooks for testing the go command.
     6  
     7  // +build testgo
     8  
     9  package work
    10  
    11  import "os"
    12  
    13  func init() {
    14  	if v := os.Getenv("TESTGO_VERSION"); v != "" {
    15  		runtimeVersion = v
    16  	}
    17  }