func Greet(name string, lang string) string { switch lang { case "en": return fmt.Sprintf("Hello, %s.", name) case "ja": return fmt.Sprintf("こんにちは, %s.", name) } return "..." } type TestCase struct { Name string Language string } func TestGreet(t *testing.T) { cases := []struct { in TestCase expected string }{ {TestCase{Name: "World", Language: "en"}, "Hello, World."}, {TestCase{Name: "Kazumasa",