chore: reorder atomic TypedValue

see: https://gfw.go101.org/article/unofficial-faq.html#final-zero-size-field
This commit is contained in:
gVisor bot 2023-11-23 22:39:47 +08:00
parent 0f07feb78b
commit 9a1943c568

View File

@ -11,8 +11,8 @@ func DefaultValue[T any]() T {
}
type TypedValue[T any] struct {
value atomic.Value
_ noCopy
value atomic.Value
}
func (t *TypedValue[T]) Load() T {