github.com/xenophex/i18n4go@v0.2.7-0.20160907212557-40256cda157a/test_fixtures/rewrite_package/init_code_snippet_filename/input_files/init_code_snippet.go.template (about)

     1  package __PACKAGE__NAME__
     2  
     3  import (
     4  	"fmt"
     5  	"path/filepath"
     6  
     7  	"github.com/XenoPhex/i18n4go/i18n"
     8  	goi18n "github.com/nicksnyder/go-i18n/i18n"
     9  )
    10  
    11  var T goi18n.TranslateFunc
    12  
    13  func init() {
    14  	fmt.Println("DEBUG: this is a test i18n_init.go file")
    15  	T = i18n.Init(__FULL_IMPORT_PATH__, i18n.GetResourcesPath())
    16  }