Removal of boilerplate go
refactoring to template