You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I was a newbie who started this project 2 years ago. I had made tons of mistakes by doing an initial release v1.0.0 instead of v0.0.1 as I thought it would be fine but now after gaining experience it seems like I will have to do some major changes.
As a library, one must never print to os.Stderr, instead of doing that one must return an err and let the user handle it plus Color field would be renamed to BoxColor so that it will be consistent to TitleColor and ContentColor:
Most of the panics for unknown Color types will also be changed probably to err so that the user can handle those too.
Warnings like Unknown Color Terminal Profile, Unknown Alignment provided etc will also be changed to err, though the Box will still be created successfully with default settings.
If there are any more changes needed then I will also add those too.
The text was updated successfully, but these errors were encountered:
As I was a newbie who started this project 2 years ago. I had made tons of mistakes by doing an initial release
v1.0.0
instead ofv0.0.1
as I thought it would be fine but now after gaining experience it seems like I will have to do some major changes.As a library, one must never print to
os.Stderr
, instead of doing that one must return anerr
and let the user handle it plusColor
field would be renamed toBoxColor
so that it will be consistent toTitleColor
andContentColor
:Most of the panics for
unknown Color types
will also be changed probably toerr
so that the user can handle those too.Warnings like
Unknown Color Terminal Profile
,Unknown Alignment provided
etc will also be changed toerr
, though the Box will still be created successfully with default settings.If there are any more changes needed then I will also add those too.
The text was updated successfully, but these errors were encountered: