Port of SWIG template engine to Go