From c072558b90f1bbedc2022b0f30c8b1ac4712538e Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Fri, 18 Feb 2011 09:50:58 +0100 Subject: Imported Upstream version 2011.02.15 --- misc/dashboard/godashboard/main.html | 2 +- misc/dashboard/godashboard/package.html | 2 +- misc/dashboard/godashboard/project.html | 2 +- misc/goplay/goplay.go | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'misc') diff --git a/misc/dashboard/godashboard/main.html b/misc/dashboard/godashboard/main.html index 8eb27869e..9572f181e 100644 --- a/misc/dashboard/godashboard/main.html +++ b/misc/dashboard/godashboard/main.html @@ -12,7 +12,7 @@
  • Build Status
  • Packages
  • Projects
  • -
  • Benchmarks
  • +
  • golang.org
  • diff --git a/misc/dashboard/godashboard/package.html b/misc/dashboard/godashboard/package.html index 08dd6a31d..13640c8e7 100644 --- a/misc/dashboard/godashboard/package.html +++ b/misc/dashboard/godashboard/package.html @@ -10,7 +10,7 @@
  • Build Status
  • Packages
  • Projects
  • -
  • Benchmarks
  • +
  • golang.org
  • diff --git a/misc/dashboard/godashboard/project.html b/misc/dashboard/godashboard/project.html index a9363806f..f1cf7c023 100644 --- a/misc/dashboard/godashboard/project.html +++ b/misc/dashboard/godashboard/project.html @@ -14,7 +14,7 @@
  • Build Status
  • Packages
  • Projects
  • -
  • Benchmarks
  • +
  • golang.org
  • diff --git a/misc/goplay/goplay.go b/misc/goplay/goplay.go index bc11bb759..3ca5ed80c 100644 --- a/misc/goplay/goplay.go +++ b/misc/goplay/goplay.go @@ -66,7 +66,7 @@ func FrontPage(w http.ResponseWriter, req *http.Request) { if err != nil { data = helloWorld } - frontPage.Execute(data, w) + frontPage.Execute(w, data) } // Compile is an HTTP handler that reads Go source code from the request, @@ -123,7 +123,7 @@ func Compile(w http.ResponseWriter, req *http.Request) { if *htmlOutput { w.Write(out) } else { - output.Execute(out, w) + output.Execute(w, out) } } @@ -132,9 +132,9 @@ func Compile(w http.ResponseWriter, req *http.Request) { func error(w http.ResponseWriter, out []byte, err os.Error) { w.WriteHeader(404) if out != nil { - output.Execute(out, w) + output.Execute(w, out) } else { - output.Execute(err.String(), w) + output.Execute(w, err.String()) } } -- cgit v1.2.3