Files
learngo/interfaces/05-log-parser/oop/result.go

15 lines
205 B
Go
Raw Normal View History

2019-08-17 15:55:25 +03:00
package main
type result struct {
domain string
page string
visits int
uniques int
}
func (r result) add(other result) result {
r.visits += other.visits
r.uniques += other.uniques
return r
}