diff --git a/gen_msg_test.go b/gen_msg_test.go index ece0070..c2c05c5 100644 --- a/gen_msg_test.go +++ b/gen_msg_test.go @@ -25,7 +25,7 @@ func ExampleSetDataOnMessage() { } func ExampleNewMessage() { - msg := fauxrpc.NewMessage(elizav1.File_connectrpc_eliza_v1_eliza_proto.Messages().ByName("SayResponse"), fauxrpc.GenOptions{}) + msg, _ := fauxrpc.NewMessage(elizav1.File_connectrpc_eliza_v1_eliza_proto.Messages().ByName("SayResponse"), fauxrpc.GenOptions{}) b, _ := protojson.MarshalOptions{Indent: " "}.Marshal(msg) fmt.Println(string(b)) }