mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-08-17 18:48:14 +02:00
go: upgrade to Go 1.26.4 and run go fix ./...
This commit is contained in:
parent
28070556df
commit
7293e9715b
15 changed files with 57 additions and 64 deletions
|
|
@ -6,13 +6,13 @@ import (
|
|||
|
||||
// HandlerWithError implements Handler by calling the func for each
|
||||
// request and handling returned errors and results.
|
||||
func HandlerWithError(handleFunc func(context.Context, *Conn, *Request) (result interface{}, err error)) *HandlerWithErrorConfigurer {
|
||||
func HandlerWithError(handleFunc func(context.Context, *Conn, *Request) (result any, err error)) *HandlerWithErrorConfigurer {
|
||||
return &HandlerWithErrorConfigurer{handleFunc: handleFunc}
|
||||
}
|
||||
|
||||
// HandlerWithErrorConfigurer is a handler created by HandlerWithError.
|
||||
type HandlerWithErrorConfigurer struct {
|
||||
handleFunc func(context.Context, *Conn, *Request) (result interface{}, err error)
|
||||
handleFunc func(context.Context, *Conn, *Request) (result any, err error)
|
||||
suppressErrClosed bool
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue