@@ -5,15 +5,15 @@ import (
55 "embed"
66 "encoding/json"
77 "fmt"
8- "github.com/DTSL/go-bigtable-access-layer/repository"
98 "io"
109 "log"
1110 "os"
1211 "time"
1312
1413 "cloud.google.com/go/bigtable"
15- "github.com/DTSL/go-bigtable-access-layer/aggregation"
16- "github.com/DTSL/go-bigtable-access-layer/mapping"
14+ "github.com/sendinblue/bigtable-access-layer/aggregation"
15+ "github.com/sendinblue/bigtable-access-layer/mapping"
16+ "github.com/sendinblue/bigtable-access-layer/repository"
1717)
1818
1919const (
@@ -74,8 +74,8 @@ func readAndUseMapping(ctx context.Context, client *bigtable.Client, out io.Writ
7474 cols , events := mapper .GetMappedEvents (items )
7575 fmt .Fprintf (out , "Columns: %+v\n " , cols )
7676 for _ , event := range events {
77- fmt .Fprintf (out , "Event: %+v\n " , event )
78- }
77+ fmt .Fprintf (out , "Event: %+v\n " , event )
78+ }
7979 }
8080 return nil
8181}
@@ -110,9 +110,9 @@ func aggregate(ctx context.Context, client *bigtable.Client, out io.Writer, tabl
110110 }
111111 j , err := json .Marshal (jsonOutput )
112112 if err != nil {
113- _ ,_ = fmt .Fprintf (out , "error while formatting JSON: %v. Delivering the raw content instead:\n %+v \n " , err , jsonOutput )
113+ _ , _ = fmt .Fprintf (out , "error while formatting JSON: %v. Delivering the raw content instead:\n %+v \n " , err , jsonOutput )
114114 }
115- _ ,_ = fmt .Fprintf (out , "%s\n " , j )
115+ _ , _ = fmt .Fprintf (out , "%s\n " , j )
116116 return nil
117117}
118118
@@ -129,8 +129,8 @@ func printTwoEvents(ctx context.Context, client *bigtable.Client, out io.Writer,
129129 repo := repository .NewRepository (client .Open (table ), mapper )
130130 eventSet , err := repo .Read (ctx , "contact-3" )
131131 if err != nil {
132- return err
133- }
132+ return err
133+ }
134134 jsonOutput := make (map [string ]interface {})
135135 jsonOutput ["columns" ] = eventSet .Columns
136136 for fam , events := range eventSet .Events {
@@ -139,9 +139,9 @@ func printTwoEvents(ctx context.Context, client *bigtable.Client, out io.Writer,
139139 }
140140 j , err := json .Marshal (jsonOutput )
141141 if err != nil {
142- _ , _ = fmt .Fprintf (out , "error while formatting JSON: %v. Delivering the raw content instead:\n %+v \n " , err , jsonOutput )
143- }
144- _ ,_ = fmt .Fprintf (out , "%s\n " , j )
142+ _ , _ = fmt .Fprintf (out , "error while formatting JSON: %v. Delivering the raw content instead:\n %+v \n " , err , jsonOutput )
143+ }
144+ _ , _ = fmt .Fprintf (out , "%s\n " , j )
145145 return nil
146146}
147147
0 commit comments