testtype.go 348 B

123456789101112131415
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Package testtype contains types for testing deephash.
  4. package testtype
  5. import "time"
  6. type UnexportedAddressableTime struct {
  7. t time.Time
  8. }
  9. func NewUnexportedAddressableTime(t time.Time) *UnexportedAddressableTime {
  10. return &UnexportedAddressableTime{t: t}
  11. }