Tao Wen hace 8 años
padre
commit
106636a191
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      example_test.go

+ 2 - 1
example_test.go

@@ -4,9 +4,10 @@ import (
 	"fmt"
 	"github.com/json-iterator/go"
 	"os"
+	"testing"
 )
 
-func ExampleMarshal() {
+func Test_ExampleMarshal(t *testing.T) {
 	type ColorGroup struct {
 		ID     int
 		Name   string