github.com/benma/gogen@v0.0.0-20160826115606-cf49914b915a/specific/testpkg/vars.go (about) 1 /* 2 * CODE GENERATED AUTOMATICALLY WITH github.com/ernesto-jimenez/gogen/specific 3 * THIS FILE SHOULD NOT BE EDITED BY HAND 4 */ 5 6 package testpkg 7 8 var ( 9 Str = "something" 10 MapKey map[string]string = make(map[string]string) 11 MapValue map[string]string = make(map[string]string) 12 Array []string = make([]string, 0) 13 Channel chan string = make(chan string) 14 ROChannel <-chan string = make(chan string) 15 SOChannel chan<- string = make(chan string) 16 Var interface{} = Str 17 AnonymousStruct struct{ Field string } = struct{ Field string }{"value"} 18 AnonymousFn func(string) string = func(param string) string { return param } 19 ) 20 21 func Fn(param string) string { 22 return param 23 }