Rémy Oudompheng | 8fff252 | 2013-01-09 22:02:53 +0100 | [diff] [blame] | 1 | // Copyright 2013 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 | package p2 | ||||
6 | |||||
7 | import "runtime" | ||||
8 | |||||
9 | func E() func() int { return runtime.NumCPU } | ||||
10 | |||||
11 | func F() func() { return runtime.GC } | ||||
12 | |||||
13 | func G() func() string { return runtime.GOROOT } | ||||
14 | |||||
15 | func H() func() { return runtime.Gosched } | ||||
16 | |||||
17 | func I() func() string { return runtime.Version } |