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
package main import ( "github.com/polydawn/refmt/cbor" "github.com/polydawn/refmt/obj/atlas" ) type Thing struct { Array []byte } func main() { atlas := atlas.MustBuild( atlas.BuildEntry(Thing{}).StructMap().Autogenerate().Complete(), ) b, err := cbor.MarshalAtlased(Thing{}, atlas) if err != nil { panic(err) } var t Thing err = cbor.UnmarshalAtlased(b, &t, atlas) if err != nil { panic(err) // fails here. } }
The text was updated successfully, but these errors were encountered:
Simpler repro:
package main import ( "github.com/polydawn/refmt" "github.com/polydawn/refmt/obj/atlas" ) type Thing struct { Array []byte } func main() { atlas := atlas.MustBuild( atlas.BuildEntry(Thing{}).StructMap().Autogenerate().Complete(), ) var a, b Thing err := refmt.CloneAtlased(&a, &b, atlas) if err != nil { panic(err) } }
Sorry, something went wrong.
fix unmarshaling null into []byte
c6752ca
fixes polydawn#40
test: add a test for polydawn#40
6b34486
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: