Thank you both for the quick responses. I looked in to https://github.com/lovoo/ipmi_exporter yesterday and saw the TrimSpace used as well, but I am still not sure what is adding the '\n' to the commands's Output().
Tamas, I will have to look into thebuff IO, even if I am not using this for production use (home lab), I'd still like to know what you mean behind it (though I think I have a basic understanding). Jesse, what you state matches up with what I was reading in the packages. Thank you for helping to clarify and explain it. I should have recalled how Todd McLeod kept referring to the ASCII wiki/table to see what the bytes referenced. Thank you two again! I should be able to get it working today and I will update my github with the working, custom Prometheus metric exporter for FreeNAS. -- 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.