Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / go / ssa / interp / testdata / src / runtime / runtime.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/go/ssa/interp/testdata/src/runtime/runtime.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/go/ssa/interp/testdata/src/runtime/runtime.go
new file mode 100644 (file)
index 0000000..c60c7fc
--- /dev/null
@@ -0,0 +1,22 @@
+package runtime
+
+// An errorString represents a runtime error described by a single string.
+type errorString string
+
+func (e errorString) RuntimeError() {}
+
+func (e errorString) Error() string {
+       return "runtime error: " + string(e)
+}
+
+func Breakpoint()
+
+type Error interface {
+       error
+       RuntimeError()
+}
+
+const GOOS = "linux"
+const GOARCH = "amd64"
+
+func GC()