mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
all: gofmt -w -r 'interface{} -> any' (#2874)
This commit is contained in:
@@ -16,13 +16,13 @@ import (
|
||||
type Response struct {
|
||||
RequestID string `json:"requestId" graphson:"g:UUID"`
|
||||
Status struct {
|
||||
Code int `json:"code"`
|
||||
Attributes map[string]interface{} `json:"attributes"`
|
||||
Message string `json:"message"`
|
||||
Code int `json:"code"`
|
||||
Attributes map[string]any `json:"attributes"`
|
||||
Message string `json:"message"`
|
||||
} `json:"status"`
|
||||
Result struct {
|
||||
Data graphson.RawMessage `json:"data"`
|
||||
Meta map[string]interface{} `json:"meta"`
|
||||
Data graphson.RawMessage `json:"data"`
|
||||
Meta map[string]any `json:"meta"`
|
||||
} `json:"result"`
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ func (rsp *Response) Err() error {
|
||||
}
|
||||
|
||||
// ReadVal reads gremlin response data into v.
|
||||
func (rsp *Response) ReadVal(v interface{}) error {
|
||||
func (rsp *Response) ReadVal(v any) error {
|
||||
if err := rsp.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user