mirror of
https://github.com/golang/go
synced 2024-11-21 13:44:45 -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
|
||||
}
|
||||
|
||||
var makefileTemplate = template.New("Makefile").MustParse(`
|
||||
var makefileTemplate = template.Must(template.New("Makefile").Parse(`
|
||||
include $(GOROOT)/src/Make.inc
|
||||
|
||||
TARG={{.Targ}}
|
||||
@ -172,4 +172,4 @@ GCIMPORTS={{range .Imports}}-I "{{.}}" {{end}}
|
||||
LDIMPORTS={{range .Imports}}-L "{{.}}" {{end}}
|
||||
|
||||
include $(GOROOT)/src/Make.{{.Type}}
|
||||
`)
|
||||
`))
|
||||
|
@ -36,7 +36,7 @@ const debugText = `<html>
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
var debug = template.New("RPC debug").MustParse(debugText)
|
||||
var debug = template.Must(template.New("RPC debug").Parse(debugText))
|
||||
|
||||
type debugMethod struct {
|
||||
Type *methodType
|
||||
|
Loading…
Reference in New Issue
Block a user