mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue