package main import ( "net/http" "humungus.tedunangst.com/r/webs/junk" ) func badjunk(rw http.ResponseWriter, j junk.Junk) { elog.Printf("oauthorize: bad junk: %v", j) http.Error(rw, "oauthorize: bad junk", http.StatusBadRequest) } func oauthorize(rw http.ResponseWriter, r *http.Request) { j, err := junk.Read(r.Body) if err != nil { badjunk(rw, j) } dlog.Println(j) }