1
0
mirror of https://github.com/golang/go synced 2024-11-21 19:24:45 -07:00

exp/template: fix build

TBR=gri

R=gri
CC=golang-dev
https://golang.org/cl/4815070
This commit is contained in:
Rob Pike 2011-07-28 16:46:32 -07:00
parent 71ba47ac9e
commit 33a4da89d3
2 changed files with 3 additions and 3 deletions

View File

@ -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}}
`)
`))

View File

@ -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