Closed maverickwoo closed 7 years ago
Hi @maverickwoo
This came up before but I'm not keen to change the signature of the function. The reason is that it's widely used package and a break like this would cause a lot of problems and problem would break hundreds of thousands projects. Maybe we can do a v2.0 release in the future with these breaking changes. For now though I think we don't need this. Thanks!
The signature of a func returned by, say, color.PrintFunc should be the same as fmt.Print. This enables code usage like:
P.S. After this patch, I am not sure why the xFunc family of functions are still needed (except for backward compatibility). Maybe we should revise the examples in the documentation to reduce future usage.