cmd/viewer: import views when generating byteSliceField

Updates #cleanup

Signed-off-by: Percy Wegmann <percy@tailscale.com>
pull/11381/head
Percy Wegmann 9 months ago committed by Percy Wegmann
parent f072d017bd
commit 16ae0f65c0

@ -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)

Loading…
Cancel
Save