Please, don't do that.
There's no need to write a library to provide a function implementing
three lines of code. Even if there will be N functions,
each implementing these three lines of code -- one for each integral
type. Functions might be not inlined for some reason and won't be
optimized. Another problem is dependencies. Please read [1] and watch
the video it refers to.
1.
https://groups.google.com/d/msg/golang-nuts/R_lqsTTBh6I/DWIwfuMXjfgJ