Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add stub for runtime numcgocall, numgoroutine and version
  • Loading branch information
attriaayush committed Mar 12, 2022
commit e71786f35f0fd95cec466cef7e0e4fcda35fe898
14 changes: 14 additions & 0 deletions src/runtime/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}