github.com/sirkon/goproxy@v1.4.8/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  }