rogpeppe / go-internal

Selected Go-internal packages factored out from the standard library
BSD 3-Clause "New" or "Revised" License
823 stars 67 forks source link

what does "factors out" mean? #244

Closed domino14 closed 4 months ago

domino14 commented 4 months ago

Does this mean the code here is no longer in the Go standard library, but it used to be?

rogpeppe commented 4 months ago

In this case, it means that the code has been copied from the Go source and made to work independently of it.

Technically the code was never part of the standard library because it was all internal-only (hence this repository!). It all (or most of it anyway) is still present in the Go source tree. Some components since been factored out by the Go team independently (e.g. testscript, but we try to maintain API stability here so the code will remain.