1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:14:47 -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" "os"
"runtime" "runtime"
"strconv" "strconv"
"exp/template" "template"
) )
var ( var (

View File

@ -14,7 +14,6 @@ package main
import ( import (
"container/vector" "container/vector"
"exp/template"
"fmt" "fmt"
"http" "http"
"io" "io"
@ -24,6 +23,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"template"
"utf8" "utf8"
"xml" "xml"
) )

View File

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

View File

@ -6,7 +6,6 @@ package main
import ( import (
"bytes" "bytes"
"exp/template"
"flag" "flag"
"fmt" "fmt"
"go/ast" "go/ast"
@ -24,6 +23,7 @@ import (
"runtime" "runtime"
"sort" "sort"
"strings" "strings"
"template"
"time" "time"
) )

View File

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

View File

@ -82,9 +82,7 @@ DIRS=\
exp/gui/x11\ exp/gui/x11\
exp/norm\ exp/norm\
exp/regexp/syntax\ exp/regexp/syntax\
exp/template\
exp/template/html\ exp/template/html\
exp/template/parse\
expvar\ expvar\
flag\ flag\
fmt\ fmt\
@ -157,6 +155,8 @@ DIRS=\
syscall\ syscall\
syslog\ syslog\
tabwriter\ tabwriter\
template\
template/parse\
testing\ testing\
testing/iotest\ testing/iotest\
testing/quick\ testing/quick\

View File

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

View File

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

View File

@ -11,7 +11,7 @@ import (
"io" "io"
"regexp" "regexp"
"strings" "strings"
"exp/template" // for HTMLEscape "template" // for HTMLEscape
) )
func isWhitespace(ch byte) bool { return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' } func isWhitespace(ch byte) bool { return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' }

View File

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

View File

@ -2,13 +2,14 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../../../Make.inc include ../../Make.inc
TARG=exp/template/parse TARG=template
GOFILES=\ GOFILES=\
lex.go\ exec.go\
node.go\ funcs.go\
helper.go\
parse.go\ parse.go\
set.go\ set.go\
include ../../../../Make.pkg include ../../Make.pkg

View File

@ -5,13 +5,13 @@
package template package template
import ( import (
"exp/template/parse"
"fmt" "fmt"
"io" "io"
"os" "os"
"reflect" "reflect"
"runtime" "runtime"
"strings" "strings"
"template/parse"
) )
// state represents the state of an execution. It's not part of the // state represents the state of an execution. It's not part of the

View File

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

View File

@ -4,11 +4,10 @@
include ../../../Make.inc include ../../../Make.inc
TARG=exp/template TARG=template/parse
GOFILES=\ GOFILES=\
exec.go\ lex.go\
funcs.go\ node.go\
helper.go\
parse.go\ parse.go\
set.go\ set.go\

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Package parse builds parse trees for templates. The grammar is defined // 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 package parse
import ( import (

View File

@ -5,11 +5,11 @@
package template package template
import ( import (
"exp/template/parse"
"fmt" "fmt"
"io" "io"
"os" "os"
"reflect" "reflect"
"template/parse"
) )
// Set holds a set of related templates that can refer to one another by name. // Set holds a set of related templates that can refer to one another by name.