...

Source file src/cmd/go/internal/work/testgo.go

     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	}
    18	

View as plain text