We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems similar to #18 but still happens with current version:
package main import ( "fmt" "log" "net/http" "github.com/gorilla/mux" "github.com/sanity-io/litter" ) func main() { r := mux.NewRouter() r.HandleFunc(`/foo`, AnyHandler).Name("named") r.HandleFunc("/", AnyHandler).Name("front") srv := &http.Server{ Handler: r, Addr: "127.0.0.1:8000", } log.Fatal(srv.ListenAndServe()) } func AnyHandler(w http.ResponseWriter, r *http.Request) { route := mux.CurrentRoute(r) litter.Config.HidePrivateFields = false fmt.Fprintln(w, route.GetName()) defer func() { p := recover() if p != nil { fmt.Printf("Recovered: %#v\n", p) } }() litter.Sdump(route) }
/
/foo
"reflect.Value.Interface: cannot return value obtained from unexported field or method"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seems similar to #18 but still happens with current version:
/
or/foo
"reflect.Value.Interface: cannot return value obtained from unexported field or method"
The text was updated successfully, but these errors were encountered: