doubishi8303 2016-05-19 16:51
浏览 89
已采纳

为什么有些golang.org软件包带有`x'前缀

New Go programmer here, so apologies in advance for the newbie nature of this.

Why are some golang.org package names prefixed with an x? The specific package that piqued my interest was bycrypt

My main concern is the x means something like eXperimental, and I should use a different set of libraries if I want something stable. If not that, the x is there to signify something -- I'm curious what it is.

  • 写回答

2条回答 默认 最新

  • dqqn32019 2016-05-19 17:02
    关注

    The x means external. They are developed outside of the golang core. Experimental packages are under golang.org/x/exp

    Refs: https://github.com/golang/go/wiki/SubRepositories https://groups.google.com/forum/#!msg/golang-nuts/eD8dh3T9yyA/l5Ail-xfMiAJ

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?