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

Issue 4643068: code review 4643068: exp/template: functions (Closed)

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

Description

exp/template: functions Add the ability to attach functions to template and template sets. Make variadic functions and methods work. Still to come: static checking of function names during parse.

Patch Set 1 #

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

Total comments: 2

Patch Set 3 : diff -r 67b160cd5fa4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -39 lines) Patch
M src/pkg/exp/template/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/exp/template/exec.go View 1 2 11 chunks +86 lines, -32 lines 0 comments Download
M src/pkg/exp/template/exec_test.go View 2 chunks +16 lines, -1 line 0 comments Download
A src/pkg/exp/template/funcs.go View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
M src/pkg/exp/template/parse.go View 1 2 4 chunks +16 lines, -4 lines 0 comments Download
M src/pkg/exp/template/set.go View 1 2 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 4
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2011-07-05 03:54:20 UTC) #1
r
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 4 months ago (2011-07-05 03:55:29 UTC) #2
dsymonds
LGTM http://codereview.appspot.com/4643068/diff/2001/src/pkg/exp/template/exec.go File src/pkg/exp/template/exec.go (left): http://codereview.appspot.com/4643068/diff/2001/src/pkg/exp/template/exec.go#oldcode279 src/pkg/exp/template/exec.go:279: case typ.NumOut() == 2 && typ.Out(1) == osErrorType: ...
13 years, 4 months ago (2011-07-05 04:17:04 UTC) #3
r
13 years, 4 months ago (2011-07-05 04:24:02 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=28048221b2a5 ***

exp/template: functions
Add the ability to attach functions to template and template sets.
Make variadic functions and methods work.
Still to come: static checking of function names during parse.

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

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