TBD54566975 / web5-go

Apache License 2.0
10 stars 6 forks source link

Add DocumentToBytes() function #28

Open KendallWeihe opened 6 months ago

KendallWeihe commented 6 months ago

Similar to https://github.com/TBD54566975/web5-go/pull/18/files

Would be nice to call a function which marshals an instance of Document to a byte array

KendallWeihe commented 6 months ago

@mistermoe what do you think about this? I don't love bloating libraries with convenience things, but golang has so much boilerplate that these types of things may be beneficial

(similar to this ticket https://github.com/TBD54566975/web5-go/issues/25)