github.com/Liam-Williams/i18n4go@v0.2.7-0.20201028180611-670cbaceaa6b/test_fixtures/extract_strings/f_option/input_files/issue16.go (about) 1 package app 2 3 import "fmt" 4 5 func main() { 6 translatedString := "translated" 7 8 T("This is a string which has been {{.Translated}}.", map[string]interface{}{"Translated": translatedString}) 9 10 inputs := map[string]string{ 11 "test1": "foo", 12 } 13 14 fmt.Println(inputs["test1"]) 15 }