counter.go
go
package models
import "theskyscape.com/repo/skykit"
type Counter struct {
	skykit.Model
	Count int
}
func (c *Counter) Increment() {
	c.Count++
}
func (c *Counter) Decrement() {
	c.Count--
}
No comments yet.