Vim-go: Template for test files (enhancement)

Created on 22 Feb 2017  路  6Comments  路  Source: fatih/vim-go

When we open a new .go file, vim-go inserts the hello_world.go template.

When opening a new _test.go file, I would expect vim-go to insert a slightly more appropriate template, like:

package main

import "testing"

func TestHelloWorld(t *testing.T) {
}
help-wanted improvement

Most helpful comment

Hi @thomasheller

I've encountered that as well lately. Adding a flag so we can tackle it later. Thanks

All 6 comments

Hi @thomasheller

I've encountered that as well lately. Adding a flag so we can tackle it later. Thanks

/cc @bhcleek This is something I think you can tackle

I should be able to get to this in the next 2 weeks.

@bhcleek any chance you had a look for this?

Not yet. I'll plan to get to it this week, though.

This is now in master thanks to @bhcleek recent PR. Please pull it and try it out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SirmaXX picture SirmaXX  路  3Comments

groob picture groob  路  3Comments

andrejvanderzee picture andrejvanderzee  路  3Comments

danielmanesku picture danielmanesku  路  4Comments

surest picture surest  路  3Comments