type templateFile … func createTestDir(files []templateFile) string { … } // Here we demonstrate loading a set of templates from a directory. func ExampleTemplate_glob() { … } // This example demonstrates one way to share some templates // and use them in different contexts. In this variant we add multiple driver // templates by hand to an existing bundle of templates. func ExampleTemplate_helpers() { … } // This example demonstrates how to use one group of driver // templates with distinct sets of helper templates. func ExampleTemplate_share() { … }