summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/print_goroot.go
blob: 91fbf7d8ec38cd6fd1c23dd7080f4a060420387b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"fmt"
	"runtime"
)

func main() {
	fmt.Println(runtime.GOROOT())
}