* replace interface{} with any
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-07-05 09:46:50 +03:00
коммит произвёл GitHub
родитель b45ff0be5d
Коммит 717a4d04a9
258 изменённых файлов: 1286 добавлений и 1286 удалений

Просмотреть файл

@@ -24,13 +24,13 @@ func TestAuditModelTypeConv(t *testing.T) {
userPatch := &UserPatch{}
type args struct {
val interface{}
val any
}
tests := []struct {
name string
args args
wantConverted bool
wantNewVal interface{}
wantNewVal any
}{
{name: "nil value", args: args{val: nil}, wantConverted: false, wantNewVal: nil},
{name: "string value", args: args{val: "hello"}, wantConverted: false, wantNewVal: "hello"},