summaryrefslogtreecommitdiffhomepage
path: root/tools/go_marshal/test/test.go
diff options
context:
space:
mode:
authorRahat Mahmood <rahat@google.com>2020-02-27 14:51:29 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-27 14:52:26 -0800
commitaa9f8abaef5c6250bdcee8fd88b2420f20791c5d (patch)
treeb91caf2f1a0f00ecff72916b00216df13249e986 /tools/go_marshal/test/test.go
parent2cccf3d27b138b677ef50a663304b1ba83d62051 (diff)
Implement automated marshalling for newtypes on arrays.
PiperOrigin-RevId: 297693838
Diffstat (limited to 'tools/go_marshal/test/test.go')
-rw-r--r--tools/go_marshal/test/test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/go_marshal/test/test.go b/tools/go_marshal/test/test.go
index 93229dedb..c829db6da 100644
--- a/tools/go_marshal/test/test.go
+++ b/tools/go_marshal/test/test.go
@@ -104,6 +104,11 @@ type Stat struct {
_ [3]int64
}
+// InetAddr is an example marshallable newtype on an array.
+//
+// +marshal
+type InetAddr [4]byte
+
// SignalSet is an example marshallable newtype on a primitive.
//
// +marshal