mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 06:45:43 +00:00
.
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
// JSONMarshal returns the JSON encoding of v.
|
||||
type JSONMarshal func(v interface{}) ([]byte, error)
|
||||
|
||||
// JSONUnmarshal parses the JSON-encoded data and stores the result
|
||||
// in the value pointed to by v. If v is nil or not a pointer,
|
||||
// Unmarshal returns an InvalidUnmarshalError.
|
||||
type JSONUnmarshal func(data []byte, v interface{}) error
|
||||
Reference in New Issue
Block a user