To import the package above the following command is required to be executed in the project root directory:
go get github.com/traefik/traefik/v2
If you want to get an specific version of the package provide the commit hash this way:
go get github.com/traefik/traefik/v2@6a34f238ceb13cb0a81d5d131fdfe1ff2e425f33
For example, if you want to import all the go files inside the folder pkg/provider/kubernetes/crd/traefikio/v1alpha1
import (
traefik "github.com/traefik/traefik/v2/pkg/provider/kubernetes/crd/traefikio/v1alpha1"
)
type Ingress struct {
ingress traefik.IngressRouteTCP
}