Skip to main content

One doc tagged with "init"

View all tags

init函数与包初始化

init 函数是 Go 中一个非常特殊的函数:你永远不需要(也不能)手动调用它,它是由 Go 运行时(Runtime)自动调用的。