Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support Go Modules #64
Please consider supporting Go Modules, the new packaging standard that will be adopted fully in Go 1.12. Experimental support is in Go 1.11 and the new module paths are supported in Go 1.9.7+ and Go 1.10.3+ in a read-only manner for backwards compatibility with all supported versions of Go.
Because this library has no external dependencies, doesn't need to import a package within its own import path, and is already tagging its releases using semver compatible tags, not much changes in the library itself except for declaring the package name and making the major version part of the import path. This means that new projects would now import this library as "github.com/dimfeld/httptreemux/v5". Older versions without a
Thank you for your consideration.
EDIT: it should be noted that I just picked Go 1.9 as the language being used because running tests with 1.9 appeared to work, and that's the earliest version that has some basic support for modules backported into it. Since only things using modules will read this file (and everything else will work exactly as it always had), that seemed like a safe bet for maximum compatibility. If you only support some higher version of Go and want to use features or APIs in a higher version this can be changed easily, of course.