1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/testdata/json-data-format-atomic.go

14 lines
206 B
Go

package fixtures
import (
"sync/atomic"
)
type Counter uint64
func AtomicTests() {
x = atomic.AddUint64(&x, 1) // json:{"MATCH": "direct assignment to atomic value","Confidence": 1}
x := uint64(1)
}