Movatterモバイル変換


[0]ホーム

URL:


structs

package
v1.92.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:0Imported by:15

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package structs contains the Incomparable type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeIncomparable

type Incomparable [0]func()

Incomparable is a zero-width incomparable type. If added as thefirst 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 tothe struct (unless the struct has only small fields).

Be making a struct incomparable, you can prevent misuse (preventpeople from using ==), but also you can shrink generated binaries,as the compiler can omit equality funcs from the binary.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp