cmd/cloner: add Clone context to regen struct assignments

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2021-09-16 15:58:43 -07:00
committed by Josh Bleecher Snyder
parent 618376dbc0
commit d5ab18b2e6
7 changed files with 17 additions and 17 deletions

View File

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