yar999
Go语言圣经

Updated 2 years ago

li.li (@lili21) started discussion #47

6 months ago · 0 comments

Open

对于在包级别声明的变量,如果有初始化表达式则用表达式初始化,还有一些没有初始化表达式的,例如某些表格数据初始化并不是一个简单的赋值过程。在这种情况下,我们可以用一个特殊的init初始化函数来简化初始化工作。每个文件都可以包含多个init初始化函数

包和文件 (Edit this file)

每个文件都可以包含多个init函数?

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant