Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to generate code for maps within structs #20

Closed
i opened this issue Apr 14, 2016 · 0 comments
Closed

Fails to generate code for maps within structs #20

i opened this issue Apr 14, 2016 · 0 comments

Comments

@i
Copy link

i commented Apr 14, 2016

Attempting to run easyjson on this file generates the following errors:

types.go

package types

type UUID string
type Meter string

type Thing struct {
  UUID   UUID
  Length Meter
}

type Response struct {
  Things map[UUID]Thing
}

errors:

# ezjson_test
./types_easyjson.go:27: undefined: types in types.UUID
./types_easyjson.go:27: undefined: types in types.Thing
./types_easyjson.go:36: cannot use key (type string) as type UUID in map index
./types_easyjson.go:63: cannot use v2_name (type UUID) as type string in argument to out.String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant