tc package: Split enum into its own package#4293
tc package: Split enum into its own package#4293zrhoffman wants to merge 14 commits intoapache:masterfrom
Conversation
|
Personally, I'd really prefer we kept this stuff in I think it's also good to keep as much as we can in a library that indicates it's Traffic Control, so it's easy for people not intricately familiar with the code to immediately see it's ours and not a third-party. And we could do something like
I wouldn't object to breaking that file into multiple files, though.
That's a bug, we should definitely fix the GoDoc. |
|
I can see the benefit of a short package name like |
What does this PR (Pull Request) do?
This PR splits
enum.gowithin thetclibrary into its own package. Reasons for doing this:Looking at the line count of source files in the
tcpackage (wc -l *.go | sort -g),enum.gois 727 lines, more lines than the next-longest file in the package (deliveryservices.go) by 122 lines. Excluding tests and vendor files, only 10 go sources (out of 584) in the whole project are longer than this.The godoc for the
tcpackage currently begins with this line:Behavior should be unchanged by this PR, and the documentation contains no references to the
tclibrary orenum.go, so changes to documentation are not necessary.Because no code is added, existing tests are sufficient.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
The following criteria are ALL met by this PR
Additional Information
The contents of 9010b50, the package rename itself, is a result of using Goland's "refactor" feature to move
enum.go.