I have three logging functions that are almost identical. If I move the identicle code into a function without pointers then there is a noticeable speed decrease. I know this is premature optimisation as logging shouldn't happen frequently enough or be that large (hopefully).
That said. I am left wondering aside from code generation steps and copy and paste (current solution) if I am unaware of any options that might avoid pointer use, such as: 1./ scoped global, like a Class might provide 2./ macro type instantiation that simply inserts the code at compile time but without the compiler doing any computations I assume not, from perusing the spec? p.s. It's fine if the solution is pointers. Just wondering if I can avoid panic potential. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e7cfd4a6-8264-229e-ad96-a935aaa1be3a%40gmail.com.