]> Cypherpunks repositories - gostls13.git/commitdiff
template: move exp/template into template.
authorRob Pike <r@golang.org>
Wed, 17 Aug 2011 04:55:57 +0000 (14:55 +1000)
committerRob Pike <r@golang.org>
Wed, 17 Aug 2011 04:55:57 +0000 (14:55 +1000)
(Leave exp/template/html where it is for now.)

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4899048

30 files changed:
misc/goplay/goplay.go
src/cmd/godoc/codewalk.go
src/cmd/godoc/format.go
src/cmd/godoc/godoc.go
src/cmd/goinstall/make.go
src/pkg/Makefile
src/pkg/exp/template/html/reverse.go
src/pkg/exp/template/html/reverse_test.go
src/pkg/go/doc/comment.go
src/pkg/rpc/debug.go
src/pkg/template/Makefile [moved from src/pkg/exp/template/parse/Makefile with 65% similarity]
src/pkg/template/doc.go [moved from src/pkg/exp/template/doc.go with 100% similarity]
src/pkg/template/exec.go [moved from src/pkg/exp/template/exec.go with 99% similarity]
src/pkg/template/exec_test.go [moved from src/pkg/exp/template/exec_test.go with 100% similarity]
src/pkg/template/funcs.go [moved from src/pkg/exp/template/funcs.go with 100% similarity]
src/pkg/template/helper.go [moved from src/pkg/exp/template/helper.go with 100% similarity]
src/pkg/template/parse.go [moved from src/pkg/exp/template/parse.go with 99% similarity]
src/pkg/template/parse/Makefile [moved from src/pkg/exp/template/Makefile with 82% similarity]
src/pkg/template/parse/lex.go [moved from src/pkg/exp/template/parse/lex.go with 100% similarity]
src/pkg/template/parse/lex_test.go [moved from src/pkg/exp/template/parse/lex_test.go with 100% similarity]
src/pkg/template/parse/node.go [moved from src/pkg/exp/template/parse/node.go with 100% similarity]
src/pkg/template/parse/parse.go [moved from src/pkg/exp/template/parse/parse.go with 99% similarity]
src/pkg/template/parse/parse_test.go [moved from src/pkg/exp/template/parse/parse_test.go with 100% similarity]
src/pkg/template/parse/set.go [moved from src/pkg/exp/template/parse/set.go with 100% similarity]
src/pkg/template/set.go [moved from src/pkg/exp/template/set.go with 99% similarity]
src/pkg/template/set_test.go [moved from src/pkg/exp/template/set_test.go with 100% similarity]
src/pkg/template/testdata/file1.tmpl [moved from src/pkg/exp/template/testdata/file1.tmpl with 100% similarity]
src/pkg/template/testdata/file2.tmpl [moved from src/pkg/exp/template/testdata/file2.tmpl with 100% similarity]
src/pkg/template/testdata/tmpl1.tmpl [moved from src/pkg/exp/template/testdata/tmpl1.tmpl with 100% similarity]
src/pkg/template/testdata/tmpl2.tmpl [moved from src/pkg/exp/template/testdata/tmpl2.tmpl with 100% similarity]

index 4b59bbbe22a1a2f6841cb9d5955e1b31885c6401..bbc388ba4cfb09d0726888a7348a83e81319f4f4 100644 (file)
@@ -14,7 +14,7 @@ import (
        "os"
        "runtime"
        "strconv"
-       "exp/template"
+       "template"
 )
 
 var (
index 2e14186b0bfe8ee7527cff93e44c351dac6fb6c8..e2643e46627245f1e6d94b40f421a86318a1bcf7 100644 (file)
@@ -14,7 +14,6 @@ package main
 
 import (
        "container/vector"
-       "exp/template"
        "fmt"
        "http"
        "io"
@@ -24,6 +23,7 @@ import (
        "sort"
        "strconv"
        "strings"
+       "template"
        "utf8"
        "xml"
 )
index 69fd6ba0c09ec8c5db775be63445cc11962eae13..78dde4166f0cab6db5eddefe201116f6b9b8846b 100644 (file)
 package main
 
 import (
-       "exp/template"
        "fmt"
        "go/scanner"
        "go/token"
        "io"
        "regexp"
        "strconv"
+       "template"
 )
 
 // ----------------------------------------------------------------------------
index 7d4bcdc0c98198b24857fd6f06ee5fd9750bc530..b8a839404389e3f43e1e299a996b5f7e71f1c653 100644 (file)
@@ -6,7 +6,6 @@ package main
 
 import (
        "bytes"
-       "exp/template"
        "flag"
        "fmt"
        "go/ast"
@@ -24,6 +23,7 @@ import (
        "runtime"
        "sort"
        "strings"
+       "template"
        "time"
 )
 
index 25f79d60df455c9bfdf7530407a23b6cd27142c2..38a70ddfd4a40fcd18a3a0b5a1198def5d034a84 100644 (file)
@@ -8,11 +8,11 @@ package main
 
 import (
        "bytes"
-       "exp/template"
        "go/build"
        "os"
        "path/filepath"
        "strings"
+       "template"
 )
 
 // domake builds the package in dir.
index 6fc4f9e46a73434b2e22daed27c884ed1cd18058..ac36aaf0ca4bf18a241ab8d3842bd27097a30ffe 100644 (file)
@@ -82,9 +82,7 @@ DIRS=\
        exp/gui/x11\
        exp/norm\
        exp/regexp/syntax\
-       exp/template\
        exp/template/html\
-       exp/template/parse\
        expvar\
        flag\
        fmt\
@@ -157,6 +155,8 @@ DIRS=\
        syscall\
        syslog\
        tabwriter\
+       template\
+       template/parse\
        testing\
        testing/iotest\
        testing/quick\
index 446e0f7b5efe2ce7a46e783f0bd3359ee610749f..9a806c206959520cd7f4b4de548855ca431582d1 100644 (file)
@@ -9,9 +9,9 @@
 package html
 
 import (
-       "exp/template"
-       "exp/template/parse"
        "fmt"
+       "template"
+       "template/parse"
 )
 
 // Reverse reverses a template.
index 32d11c6d65b145dd58ff786d55617d4908eb0806..bc29c07b77f96f3da0d2095f2a1a3b555402e797 100644 (file)
@@ -6,7 +6,7 @@ package html
 
 import (
        "bytes"
-       "exp/template"
+       "template"
        "testing"
 )
 
index af307459ece03127132db329c971a4fa939a84cb..e1989226b68cb725245b4fb9c079c9f65dd73ad2 100644 (file)
@@ -11,7 +11,7 @@ import (
        "io"
        "regexp"
        "strings"
-       "exp/template" // for HTMLEscape
+       "template" // for HTMLEscape
 )
 
 func isWhitespace(ch byte) bool { return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' }
index 80d20641531785398448a49344be0cbbeda2efc5..7e3e6f6e5b723dfbb0f2a5fac64eb94af0437214 100644 (file)
@@ -10,10 +10,10 @@ package rpc
 */
 
 import (
-       "exp/template"
        "fmt"
        "http"
        "sort"
+       "template"
 )
 
 const debugText = `<html>
similarity index 65%
rename from src/pkg/exp/template/parse/Makefile
rename to src/pkg/template/Makefile
index 5483a0cf9ee905bd547c03f5446cecd11183f6dd..3ed3b03308baf652a70c1d2cbc4fce9979113b60 100644 (file)
@@ -2,13 +2,14 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../../../Make.inc
+include ../../Make.inc
 
-TARG=exp/template/parse
+TARG=template
 GOFILES=\
-       lex.go\
-       node.go\
+       exec.go\
+       funcs.go\
+       helper.go\
        parse.go\
        set.go\
 
-include ../../../../Make.pkg
+include ../../Make.pkg
similarity index 99%
rename from src/pkg/exp/template/exec.go
rename to src/pkg/template/exec.go
index 08cb39090049432ee906e331bf167ab3f57d9cac..eaa57ae81860439e9a8378a222856122cda42d70 100644 (file)
@@ -5,13 +5,13 @@
 package template
 
 import (
-       "exp/template/parse"
        "fmt"
        "io"
        "os"
        "reflect"
        "runtime"
        "strings"
+       "template/parse"
 )
 
 // state represents the state of an execution. It's not part of the
similarity index 99%
rename from src/pkg/exp/template/parse.go
rename to src/pkg/template/parse.go
index 4b8a54e65ca8db55907cfd4dabed1e43d2d6e746..b089c599a4769ee26b334cb3e3959293cfe2952c 100644 (file)
@@ -5,9 +5,9 @@
 package template
 
 import (
-       "exp/template/parse"
        "os"
        "reflect"
+       "template/parse"
 )
 
 // Template is the representation of a parsed template.
similarity index 82%
rename from src/pkg/exp/template/Makefile
rename to src/pkg/template/parse/Makefile
index 06df9b65977c6d84a03a2342ca4e84fd51aabad1..fe65858097d9c3670a7dda1e95e6d6418bfbd5e2 100644 (file)
@@ -4,11 +4,10 @@
 
 include ../../../Make.inc
 
-TARG=exp/template
+TARG=template/parse
 GOFILES=\
-       exec.go\
-       funcs.go\
-       helper.go\
+       lex.go\
+       node.go\
        parse.go\
        set.go\
 
similarity index 99%
rename from src/pkg/exp/template/parse/parse.go
rename to src/pkg/template/parse/parse.go
index 691d85ef63d01439db89a31cc9ce708d78c96faa..9a411a3f37338c2b9b171c7d6e60b34b34484890 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Package parse builds parse trees for templates.  The grammar is defined
-// in the documents for the exp/template package.
+// in the documents for the template package.
 package parse
 
 import (
similarity index 99%
rename from src/pkg/exp/template/set.go
rename to src/pkg/template/set.go
index 7f2813c048609fdf0b1b62973261874bdcd26a39..f778fd1693f32c1222ca3295748dde710323009b 100644 (file)
@@ -5,11 +5,11 @@
 package template
 
 import (
-       "exp/template/parse"
        "fmt"
        "io"
        "os"
        "reflect"
+       "template/parse"
 )
 
 // Set holds a set of related templates that can refer to one another by name.