We have file "rb-gateway" on windows. In it, there are folder "gitRep" (where inside there is .git folder and other files), file htpasswd with approppriate data, empty file tokens.dat, empty file webhooks.json, rbgateway-1.0-windows-amd64.exe and config.json, which contains:
{
"port":8888,
"htpasswdPath":"htpasswd",
"tokenStorePath":"tokens.dat",
"webhookStorePath":"webhooks.json",
"repositories":[
{
"name":"repo1",
"path":"testingForReviewBoard",
"scm":"git"
}
]
}
When I run .exe file in cmd, I get:
C:\Users\M0097932\Desktop\rb-gateway>rbgateway-1.0-windows-amd64.exe
2019/11/27 15:03:11 Could not create API: json: cannot unmarshal object into Go value of type []*hooks.Webhook
config.json should be ok, I used online JSON validator on it.
Why do I get the error? I know nothing of GO and unmarshaling objects.