Why are Some golang.org Packages Prefixed with an `x`

前端 未结 2 1038
隐瞒了意图╮
隐瞒了意图╮ 2021-01-13 11:13

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

相关标签:
2条回答
  • 2021-01-13 11:32

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

    Refs: https://golang.org/pkg/#subrepo https://groups.google.com/forum/#!msg/golang-nuts/eD8dh3T9yyA/l5Ail-xfMiAJ

    0 讨论(0)
  • 2021-01-13 11:38

    Packages that are prefixed with X are part of the go project but are stored in sub repos. They are not experimental.

    See: https://golang.org/pkg/#subrepo

    0 讨论(0)
提交回复
热议问题