From aeae16b021ef739c69464d5dc5b9babbd35a7ba5 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Sun, 28 Apr 2024 21:30:55 +0200 Subject: [PATCH] Added gitignore --- .gitignore | 1 + main.go | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba077a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin diff --git a/main.go b/main.go index 4f7e087..958c955 100644 --- a/main.go +++ b/main.go @@ -33,19 +33,21 @@ func main() { // fmt.Println('F') - // _, err = data.QueryEmployeesByColumn(proto.FieldGender, "70") - // if err != nil { - // fmt.Println(err) - // } + _, err = data.QueryEmployeesByColumn(proto.FieldGender, "70") + if err != nil { + fmt.Println(err) + } - r := proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 { - return proto.Max(ep, proto.FieldSalary) - }) - fmt.Println(r) - r = proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 { - return proto.Min(ep, proto.FieldSalary) - }) - fmt.Println(r) + // fmt.Println(res) + + // r := proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 { + // return proto.Max(ep, proto.FieldSalary) + // }) + // fmt.Println(r) + // r = proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 { + // return proto.Min(ep, proto.FieldSalary) + // }) + // fmt.Println(r) // for key := range result { // fmt.Println(key) // }