Files
learngo/interfaces/log-parser/oop/result.go
2019-08-21 20:38:07 +03:00

17 lines
229 B
Go

package main
const fieldsLength = 4
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
}