| commit | ca0740a0b9cd0a0ddeecdcdaf655f8b336c5ca75 | [log] [tgz] |
|---|---|---|
| author | Yuxuan 'fishy' Wang <wang@yuxuan.org> | Fri Feb 20 20:05:20 2026 -0800 |
| committer | Jens Geyer <Jens-G@users.noreply.github.com> | Sat Feb 21 10:11:39 2026 +0100 |
| tree | d819a696471315c624655b6889e011a1aa62ee0d | |
| parent | 1c989cdf6b2a37082667ff13cbe1862e73e43720 [diff] [blame] |
go: Modernize codebase with go fix
diff --git a/lib/go/test/tests/names_test.go b/lib/go/test/tests/names_test.go index 5094bcb..ebf3559 100644 --- a/lib/go/test/tests/names_test.go +++ b/lib/go/test/tests/names_test.go
@@ -27,8 +27,7 @@ ) func TestThatAttributeNameSubstituionDoesNotOccur(t *testing.T) { - s := namestest.NamesTest{} - st := reflect.TypeOf(s) + st := reflect.TypeFor[namestest.NamesTest]() _, ok := st.FieldByName("Type") if !ok { t.Error("Type attribute is missing!")