There is no need to use `assert.Implements` since we can express this check during compile time. Go will eliminate `_` variables and any accompanying allocations during dead-code elimination phase. This commit also removes: tok := new(v1alpha1.ClusterConfig).Token() assert.Implements(t, (*config.Token)(nil), tok) Code since it doesn't check anything - v1alpha1.ClusterConfig.Token() already returns a config.Token interface. Also - run `go work sync` and `go mod tidy`. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
18 lines
436 B
Modula-2
18 lines
436 B
Modula-2
module github.com/talos-systems/structprotogen
|
|
|
|
go 1.19
|
|
|
|
require (
|
|
github.com/fatih/structtag v1.2.0
|
|
github.com/spf13/cobra v1.5.0
|
|
golang.org/x/tools v0.1.12
|
|
gopkg.in/typ.v4 v4.2.0
|
|
)
|
|
|
|
require (
|
|
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
|
|
golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect
|
|
)
|