Add runtime stubs required for net/http

Continued from #1911.
This commit is contained in:
Federico G. Schwindt
2021-05-28 17:11:24 +01:00
committed by Ayke
parent 5b82125765
commit 62f9f61664
2 changed files with 25 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
package runtime
func Callers(skip int, pc []uintptr) int {
return 0
}
+20
View File
@@ -0,0 +1,20 @@
package runtime
type Frames struct {
//
}
type Frame struct {
Function string
File string
Line int
}
func CallersFrames(callers []uintptr) *Frames {
return nil
}
func (ci *Frames) Next() (frame Frame, more bool) {
return Frame{}, false
}