From f8335c6df9e28cb97b2add4f937c20ad1ce91f65 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Thu, 20 Jun 2024 22:24:03 +0800 Subject: [PATCH] README: reflect (partially) --- README.md | 1 + internal/lib/reflect/type.go | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 09729729..918d1cce 100644 --- a/README.md +++ b/README.md @@ -213,6 +213,7 @@ Here are the Go packages that can be imported correctly: * [sync](https://pkg.go.dev/sync) (partially) * [syscall](https://pkg.go.dev/syscall) (partially) * [os](https://pkg.go.dev/os) (partially) +* [reflect](https://pkg.go.dev/reflect) (partially) ## Dependencies diff --git a/internal/lib/reflect/type.go b/internal/lib/reflect/type.go index 92d95359..0a5a6e71 100644 --- a/internal/lib/reflect/type.go +++ b/internal/lib/reflect/type.go @@ -423,14 +423,7 @@ var kindNames = []string{ } func (t *rtype) String() string { - /* - s := t.nameOff(t.t.Str).Name() - if t.t.TFlag&abi.TFlagExtraStar != 0 { - return s[1:] - } - return s - */ - panic("todo") + return t.t.String() } func (t *rtype) Size() uintptr { return t.t.Size() }