tailscale.comtailscale.com/types/empty Index | Files

package empty

import "tailscale.com/types/empty"

Package empty defines an empty struct type.

Index

Types

type Message

type Message struct{}

Message is an empty message. Its purpose is to be used as pointer type where nil and non-nil distinguish whether it's set. This is used instead of a bool when we want to marshal it as a JSON empty object (or null) for the future ability to add other fields, at which point callers would define a new struct and not use empty.Message.

Source Files

message.go

Version
v1.84.0 (latest)
Published
May 21, 2025
Platform
linux/amd64
Last checked
1 day ago

Tools for package owners.