add stub for runtime numcgocall, numgoroutine and version

This commit is contained in:
Aayush Attri
2022-03-12 12:12:16 +00:00
committed by Ayke
parent aa421bf655
commit 881aba1785
+14
View File
@@ -8,3 +8,17 @@ package runtime
func NumCPU() int {
return 1
}
// NumCgoCall returns the number of cgo calls made by the current process.
func NumCgoCall() int {
return 0
}
// NumGoroutine returns the number of goroutines that currently exist.
func NumGoroutine() int {
return 1
}
func Version() string {
return "v0.1.0"
}