Commit 33a4da89 authored by Rob Pike's avatar Rob Pike

exp/template: fix build

TBR=gri

R=gri
CC=golang-dev
https://golang.org/cl/4815070
parent 71ba47ac
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment