mirror of
https://github.com/golang/go
synced 2024-11-22 01:24:42 -07:00
exp/template: fix build
TBR=gri R=gri CC=golang-dev https://golang.org/cl/4815070
This commit is contained in:
parent
71ba47ac9e
commit
33a4da89d3
@ -138,7 +138,7 @@ type makedata struct {
|
|||||||
Imports []string // gc/ld import paths
|
Imports []string // gc/ld import paths
|
||||||
}
|
}
|
||||||
|
|
||||||
var makefileTemplate = template.New("Makefile").MustParse(`
|
var makefileTemplate = template.Must(template.New("Makefile").Parse(`
|
||||||
include $(GOROOT)/src/Make.inc
|
include $(GOROOT)/src/Make.inc
|
||||||
|
|
||||||
TARG={{.Targ}}
|
TARG={{.Targ}}
|
||||||
@ -172,4 +172,4 @@ GCIMPORTS={{range .Imports}}-I "{{.}}" {{end}}
|
|||||||
LDIMPORTS={{range .Imports}}-L "{{.}}" {{end}}
|
LDIMPORTS={{range .Imports}}-L "{{.}}" {{end}}
|
||||||
|
|
||||||
include $(GOROOT)/src/Make.{{.Type}}
|
include $(GOROOT)/src/Make.{{.Type}}
|
||||||
`)
|
`))
|
||||||
|
@ -36,7 +36,7 @@ const debugText = `<html>
|
|||||||
</body>
|
</body>
|
||||||
</html>`
|
</html>`
|
||||||
|
|
||||||
var debug = template.New("RPC debug").MustParse(debugText)
|
var debug = template.Must(template.New("RPC debug").Parse(debugText))
|
||||||
|
|
||||||
type debugMethod struct {
|
type debugMethod struct {
|
||||||
Type *methodType
|
Type *methodType
|
||||||
|
Loading…
Reference in New Issue
Block a user