Added gitignore
This commit is contained in:
26
main.go
26
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)
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user