libgo: update to go1.9
[official-gcc.git] / libgo / go / cmd / go / internal / load / testgo.go
blob7734048f5c98d99a246ea21fa3779edef936944e
1 // Copyright 2014 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.
5 // This file contains extra hooks for testing the go command.
6 // It is compiled into the Go binary only when building the
7 // test copy; it does not get compiled into the standard go
8 // command, so these testing hooks are not present in the
9 // go command that everyone uses.
11 // +build testgo
13 package load
15 import "os"
17 func init() {
18 if v := os.Getenv("TESTGO_IS_GO_RELEASE"); v != "" {
19 isGoRelease = v == "1"