This is not possible because this project is very large
On Tuesday, April 14, 2020 at 7:34:49 PM UTC+5, Brian Candler wrote:
>
> Can you make this as a full runnable example on play.golang.org ?
>
> What type is a "db.Visitor"?
>
> When I compile my code it throw error like this 0xc54f40 , 0xc000
I try and Thank you for help
On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var visitor db.Visitor
> err := dec.Decode(&visitor);if err!= nil{ print("error", err) // throw
> this error } println("data:", visitor.Id)
>
> When I c
I suspect your client isn't providing the required JSON body when making
the request. Try reading the body with `ioutil.ReadAll` before decoding
with `json.Unmarshal` so you can see exactly what's being provided.
On Wed, 15 Apr 2020 at 09:40, Ali Hassan wrote:
> So i will try with printf statem
So i will try with printf statement, to checkout what's the error , i had
...
Error : EOF
On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var visitor db.Visitor
> err := dec.Decode(&visitor);if err!= nil{ print("e
https://github.com/ali2210/HealthyTickets/
On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var visitor db.Visitor
> err := dec.Decode(&visitor);if err!= nil{ print("error", err) // throw
> this error } println("data:", visitor.Id
Ok I will try this
On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var visitor db.Visitor
> err := dec.Decode(&visitor);if err!= nil{ print("error", err) // throw
> this error } println("data:", visitor.Id)
>
> When I compile my
db.Visitor struct + json which is defined in db package with Visitor
On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var visitor db.Visitor
> err := dec.Decode(&visitor);if err!= nil{ print("error", err) // throw
> this error }
Can you make this as a full runnable example on play.golang.org ?
What type is a "db.Visitor"?
When I compile my code it throw error like this 0xc54f40 , 0xc32070.
>
It will show more than that. Please show the complete error message.
--
You received this message because you are subscrib