Go:init()
init()
init()函数特性
- init()在 main 包执行之前
- init()自动执行,不能显示调用
- 同一个 Go 文件中可定义多个 init()函数,顺序执行
- 同一个 package 中不同文件,将文件名按字符串进行字母和数字自然排序,之后顺序调用各文件中的 init()
| Item | Contact |
|---|---|
| Author | Jaco Liu |
| ljqlab@163.com | |
| laulinux | |
| 404691073 | |
| Blog | https://www.wdft.com |
1、All that city you just couldn’t see an end to it.
城市那么大,看不到尽头。
2、The end? Please? Can you please just show me where it ends?
尽头在哪里?可以给我看看尽头么?