mirror of
https://github.com/VinGarcia/ksql.git
synced 2025-05-31 11:42:25 +00:00
14 lines
179 B
Go
14 lines
179 B
Go
package tt
|
|
|
|
import (
|
|
"encoding/json"
|
|
"testing"
|
|
)
|
|
|
|
func ToJSON(t *testing.T, obj interface{}) []byte {
|
|
rawJSON, err := json.Marshal(obj)
|
|
AssertNoErr(t, err)
|
|
|
|
return rawJSON
|
|
}
|