golang.org/x/tools@v0.21.1-0.20240520172518-788d39e776b1/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  func GC()