From 881aba17853e1a1870c14edf1f2f212fd869d224 Mon Sep 17 00:00:00 2001 From: Aayush Attri Date: Sat, 12 Mar 2022 12:12:16 +0000 Subject: [PATCH] add stub for runtime numcgocall, numgoroutine and version --- src/runtime/debug.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 8a69c6e2..293d1cc0 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -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" +}