summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2024-07-08 10:11:00 -0500
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2024-07-11 16:38:53 -0500
commitfc28c8e7f39d83e75dfd6009c789c0a9739ba9bd (patch)
treea1396748b894080dfdf56bd9c292b5f446f61c39 /control/controlknobs
parentb7c3cfe04983d5a8961ed9d798a1cf7482d9bcfd (diff)
downloadtailscale-fc28c8e7f39d83e75dfd6009c789c0a9739ba9bd.tar.xz
tailscale-fc28c8e7f39d83e75dfd6009c789c0a9739ba9bd.zip
cmd/cloner, cmd/viewer, util/codegen: add support for generic types and interfaces
This adds support for generic types and interfaces to our cloner and viewer codegens. It updates these packages to determine whether to make shallow or deep copies based on the type parameter constraints. Additionally, if a template parameter or an interface type has View() and Clone() methods, we'll use them for getters and the cloner of the owning structure. Updates #12736 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions