mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +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