Recently I have written a program for palindrome, I thought it would be really simple and efficient to check whether a number is palindrome or not, using []byte.
I thought that go had bytconv package just like strconv, but it doesn't. I searched in internet for a very long time, trying to convert an integer to []byte, only solution I found by trolling over internet is to convert it to string and then typeCast it to []byte. But my program is being timed out, so I thought there should be some better way to convert things to []byte. []byte seems to be awesome choice for those who care about performance. I love stdlib but some times it does way too much work than I want it to. Ex:- I want to split my input if there is any " ". but scanWords take all the pain of considering \t,... and several other things. obviously I do have a choice to write my own split function. Anyhow later I found there is some pattern in how palindrome numbers were generated. It would be cool if bytconv package exists. Thank you. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.