From 16ae0f65c0e9198e0ec48ebea679df3deba02921 Mon Sep 17 00:00:00 2001 From: Percy Wegmann Date: Thu, 7 Mar 2024 15:07:12 -0600 Subject: [PATCH] cmd/viewer: import views when generating byteSliceField Updates #cleanup Signed-off-by: Percy Wegmann --- cmd/viewer/viewer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/viewer/viewer.go b/cmd/viewer/viewer.go index 56b5e2bd2..88aab997f 100644 --- a/cmd/viewer/viewer.go +++ b/cmd/viewer/viewer.go @@ -172,6 +172,7 @@ func genView(buf *bytes.Buffer, it *codegen.ImportTracker, typ *types.Named, thi switch elem.String() { case "byte": args.FieldType = it.QualifiedName(fieldType) + it.Import("tailscale.com/types/views") writeTemplate("byteSliceField") default: args.FieldType = it.QualifiedName(elem)