github.com/xenophex/i18n4go@v0.2.7-0.20160907212557-40256cda157a/test_fixtures/rewrite_package/f_option/input_files/nested_dir/test.go (about)

     1  package nested_dir
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  	"path/filepath"
     7  )
     8  
     9  type t struct {
    10  	myString string
    11  }
    12  
    13  func Something() string {
    14  	someString := "hello"
    15  	var anotherString string = "world"
    16  	println(someString, anotherString)
    17  
    18  	yetAnotherString := []string{"tricky tests"}
    19  	var moreStrings []string
    20  	moreStrings = []string{"are", "tricky"}
    21  	println(yetAnotherString, moreStrings)
    22  
    23  	mappyMap := map[string]string{"hello": "world"}
    24  	println(mappyMap)
    25  
    26  	myT := t{myString: "my string"}
    27  	println(myT)
    28  
    29  	trickyT := t{"this is a tricky case"}
    30  	println(trickyT)
    31  
    32  	fmt.Printf("HAI")
    33  	if os.Getenv("SOMETHING") {
    34  		fmt.Printf(filepath.Clean(os.Getenv("something")))
    35  	}
    36  
    37  	return "enqueuedequeueenqueuebananapants"
    38  }