Value: place nocmp zero-sized field first (#109)
This commit is contained in:
4
value.go
4
value.go
@@ -25,7 +25,7 @@ import "sync/atomic"
|
|||||||
// Value shadows the type of the same name from sync/atomic
|
// Value shadows the type of the same name from sync/atomic
|
||||||
// https://godoc.org/sync/atomic#Value
|
// https://godoc.org/sync/atomic#Value
|
||||||
type Value struct {
|
type Value struct {
|
||||||
atomic.Value
|
|
||||||
|
|
||||||
_ nocmp // disallow non-atomic comparison
|
_ nocmp // disallow non-atomic comparison
|
||||||
|
|
||||||
|
atomic.Value
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user