From d9769e6c2bab35f8f3036eae8efc59941dfbbf00 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 9 Nov 2011 23:38:23 +0900 Subject: [PATCH] gofix. --- cgiserver.go | 4 ++-- example/server.go | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/cgiserver.go b/cgiserver.go index f39c30f..c855d59 100644 --- a/cgiserver.go +++ b/cgiserver.go @@ -1,8 +1,8 @@ package cgiserver import ( - "http" - "http/cgi" + "net/http" + "net/http/cgi" "os" "path/filepath" ) diff --git a/example/server.go b/example/server.go index 5b811dd..5de4ed3 100644 --- a/example/server.go +++ b/example/server.go @@ -1,15 +1,15 @@ -package main - -import ( - . "http" - . "github.com/mattn/go-cgiserver/cgiserver" - "exec" -) - -func main() { - c := CgiServer() - c.DefaultApp = "blosxom.cgi" - c.LangMap[".cgi"], _ = exec.LookPath("perl") - c.LangMap[".php"], _ = exec.LookPath("php-cgi") - ListenAndServe(":8080", c) -} +package main + +import ( + . "github.com/mattn/go-cgiserver/cgiserver" + . "net/http" + "os/exec" +) + +func main() { + c := CgiServer() + c.DefaultApp = "blosxom.cgi" + c.LangMap[".cgi"], _ = exec.LookPath("perl") + c.LangMap[".php"], _ = exec.LookPath("php-cgi") + ListenAndServe(":8080", c) +}