Fix build on Go 1.9
Change-Id: Ie471f396b22cd88104b4f05dbcf3677c7ffd5f08
This commit is contained in:
parent
f94ab1e486
commit
53d563facb
2 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@ language: go
|
|||
|
||||
go:
|
||||
- 1.8.3
|
||||
- 1.9rc1
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
|
|
@ -156,6 +156,10 @@ func (matchString) WriteProfileTo(string, io.Writer, int) error {
|
|||
panic("shouldn't get here")
|
||||
}
|
||||
|
||||
func (matchString) ImportPath() string {
|
||||
return "{{.Package}}"
|
||||
}
|
||||
|
||||
func main() {
|
||||
{{if .MainStartTakesInterface}}
|
||||
m := testing.MainStart(matchString{}, t, nil, nil)
|
||||
|
|
Loading…
Reference in a new issue