From c0bd71c5a596af6cf7f05a712232464623da0ba9 Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Mon, 22 Mar 2021 19:15:48 -0700 Subject: [lisa] Support dynamic types for all types. We were only supporting dynamic struct types. With this change, users can make any type dynamic. The tool (correctly) blindly just generates the remaining methods needed to implement Marshallable using the 3 methods defined by the user on the dynamic type. This is helpful in situations like: type StringArray []string Added a test for such a use case. PiperOrigin-RevId: 364463164 --- tools/go_marshal/test/BUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/go_marshal/test/BUILD') diff --git a/tools/go_marshal/test/BUILD b/tools/go_marshal/test/BUILD index cb2d4e6e3..5bceacd32 100644 --- a/tools/go_marshal/test/BUILD +++ b/tools/go_marshal/test/BUILD @@ -23,7 +23,10 @@ go_test( go_library( name = "test", testonly = 1, - srcs = ["test.go"], + srcs = [ + "dynamic.go", + "test.go", + ], marshal = True, visibility = ["//tools/go_marshal/test:__subpackages__"], deps = [ -- cgit v1.2.3