Started to work on queries
This commit is contained in:
8
main.go
8
main.go
@@ -5,7 +5,6 @@ import (
|
||||
"fmt"
|
||||
// "os"
|
||||
|
||||
"git.cems.dev/cdricms/bdooc/parsing"
|
||||
"git.cems.dev/cdricms/bdooc/proto"
|
||||
// "git.cems.dev/cdricms/bdooc/parsing"
|
||||
)
|
||||
@@ -36,7 +35,10 @@ func main() {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
employees := parsing.MapFromProtoList(data)
|
||||
fmt.Println(employees[:2])
|
||||
result, err := data.QueryEmployeesByColumn(proto.FieldYearsOfService, "2.48")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
fmt.Println(result, len(result))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user