Update GoTemplatesFactory.java

Fix #227
Merge pull request #229 from pa001024/patch-2

Update GoTemplatesFactory.java. Fixed #227 better.