Question
What is a use case for public fields on privat structs in Go
Let's assume the following private struct:
type privateUser struct {
privateName string
PublicName string
}
Is there any use for public fields on a private struct? Outside of the package the whole struct is not accessible. Inside the package we can access both fields.
Do I miss something, where is makes a difference for visibility to have a private or public field on a private struct?