Skip to content

Commit 0d4a717

Browse files
chore: Update syntax
1 parent 7ab9017 commit 0d4a717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errhandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (fn Wrap) ServeHTTP(w http.ResponseWriter, r *http.Request) {
2222
}
2323

2424
// SendJSON returns a JSON response to the caller, or fails with an error.
25-
func SendJSON(w http.ResponseWriter, data interface{}) error {
25+
func SendJSON(w http.ResponseWriter, data any) error {
2626
w.Header().Set("Content-Type", "application/json")
2727
if err := json.NewEncoder(w).Encode(data); err != nil {
2828
return err

0 commit comments

Comments
 (0)