We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add support for nested structs in golang port.
The text was updated successfully, but these errors were encountered:
Сделал в js поддержку вложенных структур. Для сгенерированного json со структурами (сообщениями), мне достаточно, чтобы было примерно так:
"MyYZ": { id: 1, fields: [ { "name": "y", "type": "Int8" }, { "name": "z", "type": "Int16" }, { "name": "s", "type": "String[]" }, ] }, "Coords": { "id": 2, "fields": [ { "name": "x", "type": "Int16" }, { "name": "yz", "type": "MyYZ" }, ] }, "Param": { "id": 3, "fields": [ { "name": "coords", "type": "Coords[]" }, { "name": "xxx", "type": "Uint8" } ] } };
т.е. должен быть соблюден порядок объявления структур
P.S. в примере используется объявление динамических массивов, но можно и без них
Sorry, something went wrong.
А причем тут Go? Это ты про JS. А JS для начала неплохо бы добавить в этот репозиторий, попробуешь? https://github.com/microavia/messgen/tree/master/port
Я думал golang и go это одно и тоже. Конечно js надо сюда внести.
misterjulian
No branches or pull requests
Add support for nested structs in golang port.
The text was updated successfully, but these errors were encountered: