...
Run Format

Source file src/runtime/testdata/testprog/misc.go

Documentation: runtime/testdata/testprog

     1  // Copyright 2016 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 main
     6  
     7  import "runtime"
     8  
     9  func init() {
    10  	register("NumGoroutine", NumGoroutine)
    11  }
    12  
    13  func NumGoroutine() {
    14  	println(runtime.NumGoroutine())
    15  }
    16  

View as plain text