github.com/maps90/godog@v0.7.5-0.20170923143419-0093943021d4/gherkin.go (about) 1 package godog 2 3 import "github.com/DATA-DOG/godog/gherkin" 4 5 // examples is a helper func to cast gherkin.Examples 6 // or gherkin.BaseExamples if its empty 7 // @TODO: this should go away with gherkin update 8 func examples(ex interface{}) (*gherkin.Examples, bool) { 9 t, ok := ex.(*gherkin.Examples) 10 return t, ok 11 }