Hi egon,
Thanks for the feedback! For the question why not supporting existing
ones. I think that's tricky question, because programmers love to
improve and fix their own problems. It's not a biggie, if people like
this package they will pick it up, otherwise nothing is lost :)
You are right that some important features were missing. I've just add
some SprintXxx and PrintXxx methods which returns functions to be
used. That means it's not anymore only focusing to per line coloring.
See:
https://github.com/fatih/color#custom-print-functions
https://github.com/fatih/color#insert-into-noncolor-strings
This is possible now:
yellow := New(FgYellow).SprintFunc()
red := New(FgRed).SprintFunc()
fmt.Printf("this is a %s and this is %s.\n", yellow("warning"), red("error"))
The method name might be a little long (and ugly) however for now I'm
favor of explicit API calls.
The package is still under ongoing development. I'm planning to
improve the API, another reason why I posted this was too see what's
good and wrong, and improve them. Thanks again for your valuable
feedback.
Regards
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
Fatih Arslan