Skip to content

Commit

Permalink
gofix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 9, 2011
1 parent 12831c3 commit d9769e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions cgiserver.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cgiserver

import (
"http"
"http/cgi"
"net/http"
"net/http/cgi"
"os"
"path/filepath"
)
Expand Down
30 changes: 15 additions & 15 deletions example/server.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit d9769e6

Please sign in to comment.