func not exported by package.

image.png

我导入test01包,但是在使用的时候,却报错:

func not exported by package.
阅读 7.5k
1 个回答

func01改成大写开头,go约定大写开头的标识符才能被import用

推荐问题