mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-22 02:50:42 +00:00
cmd/cloner: add Clone context to regen struct assignments
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:

committed by
Josh Bleecher Snyder

parent
618376dbc0
commit
d5ab18b2e6
@@ -243,7 +243,7 @@ func gen(buf *bytes.Buffer, imports map[string]struct{}, name string, typ *types
|
||||
writef("return dst")
|
||||
fmt.Fprintf(buf, "}\n\n")
|
||||
|
||||
buf.Write(codegen.AssertStructUnchanged(t, name, "", thisPkg, imports))
|
||||
buf.Write(codegen.AssertStructUnchanged(t, name, "Clone", thisPkg, imports))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user