I have a package with multiple go files in it, I am looking for best practices to follow when using these variables
var print string
type someStruct struct {
//some vars
}
Consider package files has following go files in it
file1.go has a string variable print
file2.go has a struct someStruct
file3.go needs a string variable print
file4.go needs a struct someStruct
should I access/use the variable from file1.go in file3.go or create a new string variable i.e., file3print
same way should I access/use the someStruct from file2.go in file4.go or create a new struct i.e., file3SomeStruct