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) // }