Files
learngo/logparser/v5/pipe/group/page.go

16 lines
374 B
Go
Raw Normal View History

2019-08-17 15:55:25 +03:00
// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
2019-08-28 18:54:57 +03:00
package group
2019-08-17 15:55:25 +03:00
2019-08-28 20:23:38 +03:00
import "github.com/inancgumus/learngo/logparser/v5/pipe"
2019-08-17 15:55:25 +03:00
2019-08-28 18:54:57 +03:00
// Page groups records by page.
func Page(r pipe.Record) string {
return r.Str("domain") + r.Str("page")
2019-08-17 15:55:25 +03:00
}