3 ms·Write a DefaultFoo function which returns a Foo with default values set. Then unmarshal into that.by icholy 4y agoWrite a DefaultFoo function which returns a Foo with default values set. Then unmarshal into that.