mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
cmd/viewer: import views when generating byteSliceField
Updates #cleanup Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
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…
Reference in New Issue
Block a user