GitHub:https://github.com/filebrowser/filebrowser
When I read the source code of this project, I found that main.go relied on the cmd package. I found that the path in the import statement contains v2, but I have no v2 in the file path after I cloned the project from github? why is this happening?
package main
import (
"runtime"
"github.com/filebrowser/filebrowser/v2/cmd"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
cmd.Execute()
}
The github.com/filebrowser/filebrowser
repository is using the “major branch” style of code layout, which puts the v2
variant of the module on a branch or v2.X.Y
tag rather than in a subdirectory.
See: