message.go 524 B

12345678910111213
  1. // Copyright (c) Tailscale Inc & contributors
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Package empty defines an empty struct type.
  4. package empty
  5. // Message is an empty message. Its purpose is to be used as pointer
  6. // type where nil and non-nil distinguish whether it's set. This is
  7. // used instead of a bool when we want to marshal it as a JSON empty
  8. // object (or null) for the future ability to add other fields, at
  9. // which point callers would define a new struct and not use
  10. // empty.Message.
  11. type Message struct{}