Skip to content

fix: Parsing an optional *struct would fail since option wasn't handled#12

Open
archseer wants to merge 1 commit into
gagliardetto:masterfrom
archseer:master
Open

fix: Parsing an optional *struct would fail since option wasn't handled#12
archseer wants to merge 1 commit into
gagliardetto:masterfrom
archseer:master

Conversation

@archseer

Copy link
Copy Markdown

Something like this would fail to parse since the code has a special path for parsing pointers, it ignored the optional annotation.

struct Foo {
  bar: *Bar `bin:"optional"`
}

struct Bar {
  baz uint64
}

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

Successfully merging this pull request may close these issues.

2 participants