GoClipse / goclipse

Eclipse IDE for the Go programming language:
http://goclipse.github.io/
Eclipse Public License 1.0
841 stars 286 forks source link

Added new templates #171

Closed osechet closed 8 years ago

osechet commented 8 years ago

I created several code templates to ease my development such as templates to automatically generate for loops or to create make commands. I thought it could be intereting to have these templates by default in goclipse. So here is my pull request.

bruno-medeiros commented 8 years ago

Hum, I don't like the 1,2,3 suffixes that much, can you change that? Mind you different templates can have the same id, despite it being called "id". They are differentiated in the content assist popup by description. So it's fine to have multiple template called "for", for example. That said, some template should probably have more descriptive names, for example switch2 -> switch_case make1 -> make_slice make2 -> make_map etc.

bruno-medeiros commented 8 years ago

Nevermind, you actually didn't have the 1,2,3, etc. suffixes in the name, only the id, which was fine. I'm merging this with just a few tweaks.