1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:44:43 -07:00

template: move exp/template into template.

(Leave exp/template/html where it is for now.)

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4899048
This commit is contained in:
Rob Pike 2011-08-17 14:55:57 +10:00
parent 73b7afbebd
commit a22e77e6ae
30 changed files with 25 additions and 25 deletions

View File

@ -14,7 +14,7 @@ import (
"os"
"runtime"
"strconv"
"exp/template"
"template"
)
var (

View 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"
)

View File

@ -11,13 +11,13 @@
package main
import (
"exp/template"
"fmt"
"go/scanner"
"go/token"
"io"
"regexp"
"strconv"
"template"
)
// ----------------------------------------------------------------------------

View 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"
)

View File

@ -8,11 +8,11 @@ package main
import (
"bytes"
"exp/template"
"go/build"
"os"
"path/filepath"
"strings"
"template"
)
// domake builds the package in dir.

View 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\

View File

@ -9,9 +9,9 @@
package html
import (
"exp/template"
"exp/template/parse"
"fmt"
"template"
"template/parse"
)
// Reverse reverses a template.

View File

@ -6,7 +6,7 @@ package html
import (
"bytes"
"exp/template"
"template"
"testing"
)

View 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' }

View File

@ -10,10 +10,10 @@ package rpc
*/
import (
"exp/template"
"fmt"
"http"
"sort"
"template"
)
const debugText = `<html>

View 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

View 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

View File

@ -5,9 +5,9 @@
package template
import (
"exp/template/parse"
"os"
"reflect"
"template/parse"
)
// Template is the representation of a parsed template.

View 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\

View 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 (

View 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.