Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(310)

Issue 4668054: code review 4668054: exp/template: fixes and updates. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by r
Modified:
13 years, 8 months ago
Reviewers:
CC:
golang-dev, adg
Visibility:
Public.

Description

exp/template: fixes and updates. - fix line numbers - forgot to update state.line during execution - add a comment convention {{/* comment */}} - set.Template returns the named template in the set - set.Execute executes the named template in the set - use a local methodByName so this package can be used with earlier release of reflect. - use initial cap to detect exported names

Patch Set 1 #

Total comments: 4

Patch Set 2 : diff -r e59c47844327 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -4 lines) Patch
M src/pkg/exp/template/exec.go View 1 6 chunks +24 lines, -2 lines 0 comments Download
M src/pkg/exp/template/lex.go View 2 chunks +20 lines, -2 lines 0 comments Download
M src/pkg/exp/template/lex_test.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/exp/template/parse.go View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/exp/template/set.go View 1 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 3
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-07-06 04:25:01 UTC) #1
adg
LGTM modulo these comments http://codereview.appspot.com/4668054/diff/1/src/pkg/exp/template/exec.go File src/pkg/exp/template/exec.go (right): http://codereview.appspot.com/4668054/diff/1/src/pkg/exp/template/exec.go#newcode256 src/pkg/exp/template/exec.go:256: /* Previous test - why ...
13 years, 8 months ago (2011-07-06 04:38:20 UTC) #2
r
13 years, 8 months ago (2011-07-06 04:46:47 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=bae6efd2a58a ***

exp/template: fixes and updates.
- fix line numbers - forgot to update state.line during execution
- add a comment convention {{/* comment */}}
- set.Template returns the named template in the set
- set.Execute executes the named template in the set
- use a local methodByName so this package can be used with earlier release of
reflect.
- use initial cap to detect exported names

R=golang-dev, adg
CC=golang-dev
http://codereview.appspot.com/4668054
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b