主要区别在于结构中的变量是公共的(导出的)
type Profile struct { Name string Hobbies []string}在您的情况下,它们不是(小写)。
type ResponseCommands struct { key string value bool}
主要区别在于结构中的变量是公共的(导出的)
type Profile struct { Name string Hobbies []string}在您的情况下,它们不是(小写)。
type ResponseCommands struct { key string value bool}