As the title says, is accessing public struct fields more idiomatic in Go than getters and setters? Wouldn't that lead to violation of data encapsulation, also public fields in other OO languages like Java are frowned upon. This answer even claim that getters and setters are not idiomatic in Go.Does the use of struct keyword (instead of class) mean that it is meant to be used like C-style structs (POD)?
Does Go implicitly discourage getters and setters and encourage direct member access?
design;go