Use any instead of interface

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-04-28 10:28:28 +02:00 committed by Daniel Weiße
parent 8153390a57
commit 29206ac845
10 changed files with 19 additions and 19 deletions

View file

@ -13,7 +13,7 @@ import (
func TestMarshalK8SResources(t *testing.T) {
testCases := map[string]struct {
resources interface{}
resources any
wantErr bool
wantYAML string
}{
@ -119,8 +119,8 @@ metadata:
func TestUnmarshalK8SResources(t *testing.T) {
testCases := map[string]struct {
data string
into interface{}
wantObj interface{}
into any
wantObj any
wantErr bool
}{
"ConfigMap as only field can be unmarshaled": {