Added gitignore
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bin
|
||||||
26
main.go
26
main.go
@@ -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)
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user