-
```
package main
import (
"encoding/json"
"fmt"
)
//go:generate easyjson -snake_case example.go
//easyjson:json
type obj struct {
Field1 string
Field2 string
}
func main() {
va…
-
Sorry for confusing title, but the problem is follows. I have a struct that looks like this:
``` go
type Message struct {
UID MessageID `json:"uid"`
Timestamp string `j…
-
JSON serialization/deserialization seems to be an issue with many users, especially running Bulk / Search operations at scale.
Things we could do:
1. Use [ffjson](https://github.com/pquerna/ffjson) f…
-
I'm not sure if I'm doing something wrong.
Here's the model file:
``` go
package models
// User is a person with an account. We only need to know their uid,
// email and location. Location can be U…
-
Hi,
I have embedded structs and I get this problem "eaysjson_decode_... redeclared in this block ... previous declaration at ..."
I've noticed that structs are also copied where they were embedded. D…
kipal updated
8 years ago
-
Easyjson adds unneeded and invalid package name to types when dealing with slices of struct pointers ([]*MyStruct).
Minimal example:
```
package issue
type S struct {
B string
}
type Exp struc…
-
Hello, here is a problem I came across when trying `easyjson` – when I run `easyjson.go myfile.go` I get an error from title.
After investigating a bit I found the reason: my GOPATH ends with `/` so …
-
I wanted to post this as an issue because it may be an issue for others. I have a couple of quick fixes, but I am not 100% sure they need to be implemented so I am not going to create a pull request. …
-
For example we have such struct:
``` go
type SomeStruct struct {
Key1 string
Key2 string
Key3 *string
```
where key3 is nullable, because zero-value is valid value for it.
And all these …
-
My server code is
``` go
requestHandler := fasthttp.TimeoutHandler(
func(ctx *fasthttp.RequestCtx) {
switch string(ctx.Path()) {
case "/auction/opera":
fhandleOpera(ct…