All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating resource.
Please try to avoid dependencies to third-party libraries and frameworks.
Implementation edit is for fixing errors and enhancing with metadata.
Instead of changing the code of the snippet, consider creating another Go implementation.
s := UTF8PadLeft(s,m,c);
s = s.rjust(m, c)
repeat(x,max(n-len(s),0)) // s