Plans Slicing! Look into using libgolang.h: https://lab.nexedi.com/kirr/pyglang/master/golang/libgolang.h Generate the sprintf function programatically, but only for the needed amount of arguments.