0
1

I've seen code like this: type Product struct { Name string `db:"product_name"` Id int `db:"id"` } type Stocks { Name string `db:"stock_name"` ...
1
1

-6
2

0
1

I have been trying to get records greater than an _id provided The code is below filter = bson.M{"_id": bson.M{"$gt": "5c1760b4bd421c09e0f3140c"}} cur, err := collection.Find(ctx, filter, &...
0
0

I've recently started using the official mongo-go-driver (github.com/mongodb/mongo-go-driver) and it seems that I cannot use pointers in my structs -> ex.: type example struct { hello *string } If ...
-1
0

I have a problem with marshaling struct into XML. I have my structs like this: type SomeStruct struct { Campaigns CampaignsNode `xml:"campaigns"` } type CampaignsNode struct { First ...
-1
1

0
0

-1
1

-2
1

-1
1

-2
0

-1
0

I have a string like this: say ${words} to ${name} I want to replace the ${words} and ${name} with the values of variables words and name, for example: words := "hi" name := "Lili" ...
0
0

0
0