mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
add examples for read using custom decoder per type, read using custom decoder via iris#UnmarshalerFunc and to complete it add an example for the context#ReadXML.
Former-commit-id: 536b1780f12d0b9d9ce9aa976a0f95f18634ec2d
This commit is contained in:
@@ -58,15 +58,11 @@ func (v *pageView) increment() {
|
||||
}
|
||||
|
||||
func (v *pageView) decrement() {
|
||||
oldCount := v.count
|
||||
if oldCount > 0 {
|
||||
atomic.StoreUint64(&v.count, oldCount-1)
|
||||
}
|
||||
atomic.AddUint64(&v.count, ^uint64(0))
|
||||
}
|
||||
|
||||
func (v *pageView) getCount() uint64 {
|
||||
val := atomic.LoadUint64(&v.count)
|
||||
return val
|
||||
return atomic.LoadUint64(&v.count)
|
||||
}
|
||||
|
||||
type (
|
||||
|
||||
Reference in New Issue
Block a user