mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +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)
|
|
|
|
}
|