package wevent import ( "encoding/json" "log" "testing" "github.com/google/uuid" ) func TestEvent(t *testing.T) { data, _ := json.Marshal(NewWebsocketEvent(UserEmailRegister, uuid.NewString()).WithCode(200)) log.Println(string(data)) }