I'm running go1.1.2 but have also tried 1.2rc1 with a similar but
different error.
./server.go:7: import
/Users/jayson/workspace/Go/pkg/darwin_amd64/github.com/gorilla/mux.a: not a
package file
Here's the code:
package main
import (
"rexbro"
"fmt"
"net/http"
"github.com/gorilla/mux"
// "os"
"encoding/json"
)
// var router = new(mux.Router)
const port = ":3000"
func main() {
r := mux.NewRouter()
r.HandleFunc("/", HomeHandler)
r.HandleFunc("/free_agents", FreeAgentHandler)
http.Handle("/", r)
http.ListenAndServe(port, nil)
}
HELP!
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.