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

@@ -17,18 +17,18 @@ type encodeExtension struct {
}
// Marshal returns the graphson encoding of v.
func Marshal(v interface{}) ([]byte, error) {
func Marshal(v any) ([]byte, error) {
return config.Marshal(v)
}
// MarshalToString returns the graphson encoding of v as string.
func MarshalToString(v interface{}) (string, error) {
func MarshalToString(v any) (string, error) {
return config.MarshalToString(v)
}
// Encoder defines a graphson encoder.
type Encoder interface {
Encode(interface{}) error
Encode(any) error
}
// NewEncoder create a graphson encoder.