refactor: oop log parser to pkgs

This commit is contained in:
Inanc Gumus
2019-08-28 18:54:57 +03:00
parent c1f245c628
commit 0a121cd911
27 changed files with 638 additions and 433 deletions

View 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")
}