mirror of
https://github.com/wahyd4/zendesk.git
synced 2026-08-09 05:06:48 +10:00
20 lines
401 B
Go
20 lines
401 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/wahyd4/zendesk/search"
|
|
)
|
|
|
|
func main() {
|
|
|
|
app := search.InitAPP("data/organizations.json", "data/users.json", "data/tickets.json")
|
|
if err := app.Parse(); err != nil {
|
|
panic("cannot load data: " + err.Error())
|
|
}
|
|
if err := app.BuildOrganisationIndex(); err != nil {
|
|
panic("failed to build indexes: " + err.Error())
|
|
}
|
|
fmt.Println("---------------")
|
|
}
|