github.com/jd-ly/tools@v0.5.7/go/ssa/interp/testdata/src/runtime/runtime.go (about)

     1  package runtime
     2  
     3  // An errorString represents a runtime error described by a single string.
     4  type errorString string
     5  
     6  func (e errorString) RuntimeError() {}
     7  
     8  func (e errorString) Error() string {
     9  	return "runtime error: " + string(e)
    10  }
    11  
    12  func Breakpoint()
    13  
    14  type Error interface {
    15  	error
    16  	RuntimeError()
    17  }
    18  
    19  const GOOS = "linux"
    20  const GOARCH = "amd64"
    21  
    22  func GC()