You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt""net/http""github.com/go-chi/chi""github.com/go-chi/docgen"
)
// Ping is a simple function with some comments funcping(w http.ResponseWriter, r*http.Request) {
w.Write([]byte("ping"))
}
funcmain() {
r:=chi.NewRouter()
r.Get("/ping", ping)
fmt.Printf("%v\n", docgen.JSONRoutesDoc(r))
}
I have some code like this
the output is this
I would of expected comment to be filled with "Ping is a simple function with some comments"
The text was updated successfully, but these errors were encountered: