summaryrefslogtreecommitdiff
path: root/src/pkg/template/template.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-06-29 15:24:23 -0700
committerRuss Cox <rsc@golang.org>2009-06-29 15:24:23 -0700
commit755e009ad2a874373454d488f9ea46648a8a9547 (patch)
treeed3d700304a76b08cdca0f356605077c58ee0f76 /src/pkg/template/template.go
parent24323437280c7f0a166b7f2fae75620470cde0f9 (diff)
downloadgolang-755e009ad2a874373454d488f9ea46648a8a9547.tar.gz
io.StringBytes -> strings.Bytes
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
Diffstat (limited to 'src/pkg/template/template.go')
-rw-r--r--src/pkg/template/template.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/template/template.go b/src/pkg/template/template.go
index a5e9b0c7d..d44756b2d 100644
--- a/src/pkg/template/template.go
+++ b/src/pkg/template/template.go
@@ -762,7 +762,7 @@ func (t *Template) Parse(s string) os.Error {
if !validDelim(t.ldelim) || !validDelim(t.rdelim) {
return &Error{1, fmt.Sprintf("bad delimiter strings %q %q", t.ldelim, t.rdelim)}
}
- t.buf = io.StringBytes(s);
+ t.buf = strings.Bytes(s);
t.p = 0;
t.linenum = 0;
go func() {
@@ -792,8 +792,8 @@ func (t *Template) Execute(data interface{}, wr io.Writer) os.Error {
// delimiters are very rarely invalid and Parse has the necessary
// error-handling interface already.
func (t *Template) SetDelims(left, right string) {
- t.ldelim = io.StringBytes(left);
- t.rdelim = io.StringBytes(right);
+ t.ldelim = strings.Bytes(left);
+ t.rdelim = strings.Bytes(right);
}
// Parse creates a Template with default parameters (such as {} for