dtwk6019 2015-08-15 15:06
浏览 87
已采纳

Golang。 在运行时将属性添加到结构

class type User {
    name string
}

Is it possible to add a field age at runtime?

  • 写回答

1条回答 默认 最新

  • doujing1858 2015-08-15 15:33
    关注

    No it is not possible.

    Not even with Java or C++ syntax instead of valid Go.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?