all: gofmt -w -r 'interface{} -> any' (#2874)

This commit is contained in:
Ariel Mashraki
2022-08-19 18:23:04 +03:00
committed by GitHub
parent b6c185a660
commit 2c63d1d70e
619 changed files with 3449 additions and 3449 deletions

View File

@@ -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
}