Go笔记

1.Go的Publich函数必须是大写,否则调用时会报错:cannot refer to unexported name

2.函数参数polylineLength(p []Point)这样表示接收的是切片,而非数组

3.Go没有true?a:b的三目运算符

猜你喜欢

转载自www.cnblogs.com/Code-Is-Code/p/11198768.html
今日推荐