firasdarwish/ore

View on GitHub
internal/models/simple_counter_uint.go

Summary

Maintainability
A
0 mins
Test Coverage
package models

type SimpleCounterUint struct {
    Counter uint
}

func (this *SimpleCounterUint) Add(number uint) {
    this.Counter += number
}

func (this *SimpleCounterUint) GetCount() uint {
    return this.Counter
}