[go-nuts] Re: HTTP routes in different Packages

2021-04-06 Thread Abraham Afriyie
"I have two other packages, example.go and user.go" - I mean these files example.go and user.go are in different directories not the same package, and have the package names "package example" and "package user". The main.go is also in different directory with "package main". On Tuesday, April

[go-nuts] How to push/append object into mongodb array

2020-02-05 Thread abraham . afriyie
Hi, I have the JSON below in mongodb collection { "Id":"3fa85f64-5717-4562-b3fc-2c963f66afa6", "allowedNssaiList": [ { "allowedSnssaiList": [ { "allowedSnssai": { "sst": 1, "sd": "2" }, "IMSI": "2443401",

[go-nuts] How to query mysql hexadecimal data

2019-09-04 Thread abraham . afriyie
I have tried to query mysql database table data but am getting the byte data after trying many instances to convert the byte data to the hexadecimal values. Any help about how can i get the hexadecimal values from the database. I created the table below as CREATE TABLE `subscriber_profile