mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Dependency updates
This commit is contained in:
19
vendor/github.com/99designs/gqlgen/graphql/any.go
generated
vendored
Normal file
19
vendor/github.com/99designs/gqlgen/graphql/any.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package graphql
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
)
|
||||
|
||||
func MarshalAny(v interface{}) Marshaler {
|
||||
return WriterFunc(func(w io.Writer) {
|
||||
err := json.NewEncoder(w).Encode(v)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func UnmarshalAny(v interface{}) (interface{}, error) {
|
||||
return v, nil
|
||||
}
|
||||
Reference in New Issue
Block a user