Accessing variables across packages in Go

前端 未结 0 1091
迷失自我
迷失自我 2021-02-15 02:37

I have two variables in the scope of package main, those would be these:

var (
    app Application
    cfg Config
)

Now, since the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题