Comcast / gots

MPEG Transport Stream handling in Go
Other
308 stars 88 forks source link

Replace root module with v2, delete v2/ #176

Closed laba2346 closed 1 year ago

laba2346 commented 1 year ago

This PR changes the project structure to improve maintainability and usability. Specifically, it moves the v2/ source code to the root directory of the project and deletes the v2/ directory. Along with #175, this means that v1 is officially deprecated and will no longer receive updates.

Please use github.com/Comcast/gots/v2 instead.

I have also updated the Go reference badge in the README.md to point to gots/v2 instead.

Background

Previously, the root directory of the project contained the github.com/Comcast/gots module and its source code (AKA the "v1" module). However, it also had a v2/ directory, which contained the github.com/Comcast/gots/v2 module. The two modules actually had the same code; the only differences were the module name and import paths.

This convoluted structure was implemented to ensure backwards compatibility with $GOPATH users, but with the widespread adoption of Go modules, it seemed appropriate to deprecate $GOPATH support in favor of project maintainability.