diff options
| author | Maisem Ali <maisem@tailscale.com> | 2024-02-06 09:57:40 -0800 |
|---|---|---|
| committer | Maisem Ali <maisem@gmail.com> | 2024-02-06 12:50:28 -0800 |
| commit | b752bde280863f2ab1936e7cf626884d7ab44da3 (patch) | |
| tree | 2d58618d8593de486b50d0f7479b398fdf0e107f /control/controlknobs/controlknobs_test.go | |
| parent | 5595b61b96aac4558525d4fc56362dd36cc42616 (diff) | |
| download | tailscale-b752bde280863f2ab1936e7cf626884d7ab44da3.tar.xz tailscale-b752bde280863f2ab1936e7cf626884d7ab44da3.zip | |
types/views: add SliceMapKey[T]
views.Slice are meant to be immutable, and if used as such it
is at times desirable to use them as a key in a map. For non-viewed
slices it was kinda doable by creating a custom key struct but views.Slice
didn't allow for the same so add a method to create that struct here.
Updates tailscale/corp#17122
Signed-off-by: Maisem Ali <maisem@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs_test.go')
0 files changed, 0 insertions, 0 deletions
