2023-09-01 00:42:38 +03:00
|
|
|
package mypackage
|
2023-08-31 20:51:52 +03:00
|
|
|
|
2023-09-01 00:42:38 +03:00
|
|
|
import "encoding/json"
|
2023-08-31 20:51:52 +03:00
|
|
|
|
2023-09-01 00:42:38 +03:00
|
|
|
func MyFunc(input []byte) (interface{}, error) {
|
|
|
|
var output interface{}
|
|
|
|
err := json.Unmarshal(input, &output)
|
|
|
|
return output, err
|
2023-08-31 20:51:52 +03:00
|
|
|
}
|