...

Source file src/go/build/gc.go

Documentation: go/build

		 1  // Copyright 2018 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  //go:build gc
		 6  // +build gc
		 7  
		 8  package build
		 9  
		10  import (
		11  	"path/filepath"
		12  	"runtime"
		13  )
		14  
		15  // getToolDir returns the default value of ToolDir.
		16  func getToolDir() string {
		17  	return filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
		18  }
		19  

View as plain text