learning-notes

Mainly used to record Java, DBMS, HDFS... related learning notes

View the Project on GitHub zhangymPerson/learning-notes

Go 语言的面向对象 (不支持继承)

Go 语言只支持聚合(组合) 不支持继承

new() 和 make() 的区别

结构体中的成员变量,只有首字母大写,才能在其定义的 package 以外访问。而在同一个 package 内,就不会有此限制。

go 中的函数和方法