1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
revive/testdata/json_data_format_atomic.go
2024-11-11 19:31:18 +01:00

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)
}