1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:54:42 -07:00

cmd/api: add missing runtime struct

Fixes build.

TBR=khr
R=golang-codereviews
CC=golang-codereviews, khr
https://golang.org/cl/130390044
This commit is contained in:
Dmitriy Vyukov 2014-08-21 11:43:58 +04:00
parent 04487d5612
commit e249b0ffee

View File

@ -381,7 +381,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
src := "package runtime; type maptype struct{}; type _type struct{}; type alg struct{};" +
" type mspan struct{}; type m struct{}; type lock struct{}; type slicetype struct{};" +
" type iface struct{}; type eface struct{}; type interfacetype struct{}; type itab struct{};" +
" type mcache struct{}"
" type mcache struct{}; type bucket struct{}"
f, err = parser.ParseFile(fset, filename, src, 0)
if err != nil {
log.Fatalf("incorrect generated file: %s", err)