skip to Main Content

Json – Set int64 value to *int64 pointer

I need map the struct to create a JSON structure. The collector_id attribute in JSON should be able to take null value or int value. I hace the follow code: type purchaseInfo struct { CollectorID *int64 `json:"collector_id"` } func mapPurchaseInfo(collectorID…

VIEW QUESTION
Back To Top
Search