Currently, when we do:
ioutil.WriteFile("testchar.d2s", New().SetName("testchar").Encode(), 0o644)
full code here
package main
import (
"io/ioutil"
"github.com/gucio321/d2d2s/pkg/d2s"
)
func main() {
data, _ := d2s.New().SetName("testchar").Encode()
ioutil.WriteFile("testchar.d2s", data, 0o644)
}
we'll get

Currently, when we do:
ioutil.WriteFile("testchar.d2s", New().SetName("testchar").Encode(), 0o644)full code here
we'll get
