Added gitignore

This commit is contained in:
cdricms
2024-04-28 21:30:55 +02:00
parent 081a914560
commit aeae16b021
2 changed files with 15 additions and 12 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
bin

26
main.go
View File

@@ -33,19 +33,21 @@ func main() {
// fmt.Println('F') // fmt.Println('F')
// _, err = data.QueryEmployeesByColumn(proto.FieldGender, "70") _, err = data.QueryEmployeesByColumn(proto.FieldGender, "70")
// if err != nil { if err != nil {
// fmt.Println(err) fmt.Println(err)
// } }
r := proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 { // fmt.Println(res)
return proto.Max(ep, proto.FieldSalary)
}) // r := proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 {
fmt.Println(r) // return proto.Max(ep, proto.FieldSalary)
r = proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 { // })
return proto.Min(ep, proto.FieldSalary) // fmt.Println(r)
}) // r = proto.AggregateByColumn(data, proto.FieldRegion, func(ep proto.EmployeePList) float64 {
fmt.Println(r) // return proto.Min(ep, proto.FieldSalary)
// })
// fmt.Println(r)
// for key := range result { // for key := range result {
// fmt.Println(key) // fmt.Println(key)
// } // }