Skip to content

Commit 881aba1

Browse files
attriaayushaykevl
authored andcommitted
add stub for runtime numcgocall, numgoroutine and version
1 parent aa421bf commit 881aba1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/runtime/debug.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,17 @@ package runtime
88
func NumCPU() int {
99
return 1
1010
}
11+
12+
// NumCgoCall returns the number of cgo calls made by the current process.
13+
func NumCgoCall() int {
14+
return 0
15+
}
16+
17+
// NumGoroutine returns the number of goroutines that currently exist.
18+
func NumGoroutine() int {
19+
return 1
20+
}
21+
22+
func Version() string {
23+
return "v0.1.0"
24+
}

0 commit comments

Comments
 (0)