Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
package data

import "fmt"

type Product struct{
    ID          int     `json:"id"`
    Name        string  `json:"name"`
    Description string  `json:"description"`
    Price       float32 `json:"price"`
    SKU         string  `json:"sku"`
    CreatedOn   string  `json:"createdOn"`
    UpdatedOn   string  `json:"updatedOn"`
    DeletedOn   string  `json:"deletedOn"`

}


What I have tried:

I tried different IDE's visual studio and GoLand both throw the same error although the same code is working for others quite well
Posted
Updated 6-May-21 23:07pm
v2
Comments
Richard MacCutchan 7-May-21 6:18am    
Which line gives the error?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900