What's C++'s `using` equivalent in golang

后端 未结 4 516
挽巷
挽巷 2021-01-18 00:47

What\'s C++\'s using some_namespace::object equivalent in golang?

According to the question here I can get using namespace common with sta

4条回答
  •  滥情空心
    2021-01-18 01:44

    There is currently no such functionality in Go.

    That's not to say it will never be added: there is open proposal to add "Alias declarations" to the language.

提交回复
热议问题