refactor: oop log parser to pkgs
This commit is contained in:
15
interfaces/log-parser/oop/pipe/group/page.go
Normal file
15
interfaces/log-parser/oop/pipe/group/page.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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/
|
||||
//
|
||||
|
||||
package group
|
||||
|
||||
import "github.com/inancgumus/learngo/interfaces/log-parser/oop/pipe"
|
||||
|
||||
// Page groups records by page.
|
||||
func Page(r pipe.Record) string {
|
||||
return r.Str("domain") + r.Str("page")
|
||||
}
|
||||
Reference in New Issue
Block a user