patch: reflect (type)

This commit is contained in:
xushiwei
2024-06-20 14:17:37 +08:00
parent f7d7f81c49
commit f8b0a7105b
9 changed files with 1204 additions and 26 deletions

View File

@@ -337,8 +337,8 @@ func (t *Type) Align() int { return int(t.Align_) }
func (t *Type) FieldAlign() int { return int(t.FieldAlign_) }
// Name returns the name of type t.
func (t *Type) Name() string {
// String returns string form of type t.
func (t *Type) String() string {
if t.TFlag&TFlagExtraStar != 0 {
return "*" + t.Str_
}