mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +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)
|
|
|
|
}
|