"vscode:/vscode.git/clone" did not exist on "02e30ca6e4d629d9cddc87886acf06207f07f803"
Unverified Commit 8fd9e568 authored by Blake Mizerany's avatar Blake Mizerany Committed by GitHub
Browse files

types/structs: drop unused structs package (#3981)

parent 2bed6292
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
// Package structs contains the Incomparable type.
package structs
// Incomparable is a zero-width incomparable type. If added as the
// first field in a struct, it marks that struct as not comparable
// (can't do == or be a map key) and usually doesn't add any width to
// the struct (unless the struct has only small fields).
//
// By making a struct incomparable, you can prevent misuse (prevent
// people from using ==), but also you can shrink generated binaries,
// as the compiler can omit equality funcs from the binary.
type Incomparable [0]func()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment