mirror of
https://github.com/mgechev/revive.git
synced 2025-02-03 13:11:25 +02:00
14 lines
206 B
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)
|
||
|
|
||
|
}
|