github.com/Liam-Williams/i18n4go@v0.2.7-0.20201028180611-670cbaceaa6b/test_fixtures/rewrite_package/d_option/expected_output/test2.go (about)

     1  package doption
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  func DOption2() string {
     8  	name := T("cruel")
     9  	fmt.Printf(T("Bye from {{.Arg0}}", map[string]interface{}{"Arg0": T("Evil")}))
    10  
    11  	for i := range 10 {
    12  		fmt.Printf(T("Hello {{.Arg0}} world!", map[string]interface{}{"Arg0": name}))
    13  	}
    14  }