mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-08-19 19:48:13 +02:00
go: upgrade to Go 1.26.4 and run go fix ./...
This commit is contained in:
parent
4756698b1e
commit
3d270f1593
15 changed files with 57 additions and 64 deletions
|
|
@ -62,7 +62,7 @@ func (r *Response) UnmarshalJSON(data []byte) error {
|
|||
|
||||
// SetResult sets r.Result to the JSON representation of v. If JSON
|
||||
// marshaling fails, it returns an error.
|
||||
func (r *Response) SetResult(v interface{}) error {
|
||||
func (r *Response) SetResult(v any) error {
|
||||
b, err := json.Marshal(v)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue