pavelpatrin / go-ansi-to-image

Go library converting ANSI colored text to images
MIT License
3 stars 0 forks source link

json/yaml/etc. #1

Open kendfss opened 2 years ago

kendfss commented 2 years ago

It would be quite convenient if this library's config structs supported encoding directives so that an application's user's preferences could be saved. Is there any plan, or desire to incorporate this?

pavelpatrin commented 2 years ago

Hi @kendfss. Can you suggest me what exactly you want? Maybe code that invokes requested feature may help.

kendfss commented 2 years ago

Go allows api developers to create instructions for parsers by using strings. Check out the Set custom attributes in JSON section here. This is convenient on your side because you can easily get things off the ground. I tend to use it myself because it doesn't require downloading/importing extra packages. But there are other ways of doing this, such as with one of the yaml parsers. There are also other json parsers that offer more functionality. What are your thoughts on the matter? Worth implementing, or nah?

regards,

Kenneth