mirror of
https://gitee.com/johng/gf
synced 2026-07-06 13:42:46 +08:00
fix: 修复基准测试中未使用的 reflect.TypeOf 返回值
This commit is contained in:
@ -26,7 +26,7 @@ var (
|
||||
|
||||
func Benchmark_ReflectTypeOf(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
reflect.TypeOf(user).String()
|
||||
_ = reflect.TypeOf(user).String()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user