Mheni Merzouki (1) [Avatar] Offline
#1
Hello,

i have learned from my JAVA days that it was a best practice to make the variables private and create public methods (functions in go) to get the value of those variables,
does that apply to programming in go-lang, or is it better to just name the variables that we need to export starting with a capital letter and not use get functions at all ?

thank you