mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
chore: reorder atomic TypedValue
see: https://gfw.go101.org/article/unofficial-faq.html#final-zero-size-field
This commit is contained in:
parent
0f07feb78b
commit
9a1943c568
|
@ -11,8 +11,8 @@ func DefaultValue[T any]() T {
|
||||||
}
|
}
|
||||||
|
|
||||||
type TypedValue[T any] struct {
|
type TypedValue[T any] struct {
|
||||||
value atomic.Value
|
|
||||||
_ noCopy
|
_ noCopy
|
||||||
|
value atomic.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *TypedValue[T]) Load() T {
|
func (t *TypedValue[T]) Load() T {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user