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

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

@@ -621,7 +621,7 @@ func TestNowhereNil(t *testing.T) {
testCases := []struct {
Description string
Value interface{}
Value any
Expected bool
}{
{
@@ -770,7 +770,7 @@ func TestNowhereNil(t *testing.T) {
// checkNowhereNil checks that the given interface value is not nil, and if a struct, that all of
// its public fields are also nowhere nil
func checkNowhereNil(t *testing.T, name string, value interface{}) bool {
func checkNowhereNil(t *testing.T, name string, value any) bool {
if value == nil {
return false
}