ソースを参照

Change text/template to html/template in the examples

Change text/template to html/template in examples
Shrumit Mehta 8 年 前
コミット
9bc973af06
3 ファイル変更3 行追加3 行削除
  1. 1 1
      examples/chat/main.go
  2. 1 1
      examples/command/main.go
  3. 1 1
      examples/filewatch/main.go

+ 1 - 1
examples/chat/main.go

@@ -6,9 +6,9 @@ package main
 
 import (
 	"flag"
+	"html/template"
 	"log"
 	"net/http"
-	"text/template"
 )
 
 var addr = flag.String("addr", ":8080", "http service address")

+ 1 - 1
examples/command/main.go

@@ -7,12 +7,12 @@ package main
 import (
 	"bufio"
 	"flag"
+	"html/template"
 	"io"
 	"log"
 	"net/http"
 	"os"
 	"os/exec"
-	"text/template"
 	"time"
 
 	"github.com/gorilla/websocket"

+ 1 - 1
examples/filewatch/main.go

@@ -6,12 +6,12 @@ package main
 
 import (
 	"flag"
+	"html/template"
 	"io/ioutil"
 	"log"
 	"net/http"
 	"os"
 	"strconv"
-	"text/template"
 	"time"
 
 	"github.com/gorilla/websocket"