summaryrefslogtreecommitdiff
path: root/src/pkg/template
AgeCommit message (Collapse)AuthorFilesLines
2009-10-08more lgtm files from gofmtRuss Cox1-67/+67
R=gri OCL=35485 CL=35488
2009-09-17use buf.String() instead of string(buf.Bytes())Rob Pike1-8/+8
use strings.Buffer instead of bytes.Buffer in some places R=rsc DELTA=40 (0 added, 3 deleted, 37 changed) OCL=34770 CL=34775
2009-09-17unused importsRuss Cox2-3/+0
R=r OCL=34731 CL=34731
2009-09-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike2-9/+9
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-09-15more "declared and not used".Russ Cox1-1/+1
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" in tests;Russ Cox1-8/+8
also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
2009-09-14do not crash on nil data valueRuss Cox1-0/+3
R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=34606 CL=34609
2009-09-01template:Russ Cox2-7/+28
* do full lookup for {.section}, so that it is always allowed to replace {Foo} with {.section Foo}{@}{.end} * treat False as empty so that .section can be used to test bools R=r DELTA=29 (21 added, 0 deleted, 8 changed) OCL=34215 CL=34219
2009-08-29Fix .alternates execution: it was skipping every second token.David Symonds2-2/+13
R=r APPROVED=r DELTA=13 (11 added, 0 deleted, 2 changed) OCL=34081 CL=34081
2009-08-26template: Support iterables for repeated fields.David Symonds2-65/+130
R=r,rsc APPROVED=rsc DELTA=194 (97 added, 32 deleted, 65 changed) OCL=33861 CL=33933
2009-08-12convert non-low-level non-google pkg codeRuss Cox3-69/+6
to whole-package compilation. R=r OCL=33070 CL=33101
2009-08-05- FieldByName lookup through anonymous fieldsRobert Griesemer1-1/+1
- FieldByIndex - changed StructField.Index type from int -> []int - adjustments to reflect clients R=rsc,r DELTA=336 (263 added, 47 deleted, 26 changed) OCL=32731 CL=32802
2009-07-31add test of invariant in findVarRob Pike1-0/+23
R=rsc DELTA=23 (23 added, 0 deleted, 0 changed) OCL=32592 CL=32595
2009-07-31delete unused arg to empty.Rob Pike1-3/+6
add commentary about findVar's invariant. R=rsc DELTA=6 (3 added, 0 deleted, 3 changed) OCL=32583 CL=32594
2009-07-30bug fixRobert Griesemer1-2/+3
R=rsc OCL=32563 CL=32563
2009-07-30dotted namesRob Pike2-5/+24
R=rsc DELTA=28 (19 added, 0 deleted, 9 changed) OCL=32550 CL=32554
2009-07-16use FieldByName where possible.Rob Pike1-5/+2
R=rsc DELTA=20 (0 added, 12 deleted, 8 changed) OCL=31758 CL=31758
2009-07-07template: use new reflect interface (CL 31107)Russ Cox1-13/+15
R=r DELTA=16 (3 added, 1 deleted, 12 changed) OCL=31121 CL=31288
2009-06-29io.StringBytes -> strings.BytesRuss Cox3-11/+14
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-09mv src/lib to src/pkgRob Pike4-0/+1261
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102