IsZero undefined
Open
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 281
- PR merge metrics
- No merged PRs in 30d
Description
使用golang版本1.12.17,提示找不到reflect.IsZero
github.com/bilibili/gengine/internal/core/is_nil.go:32:22: value.Field(i).IsZero undefined (type reflect.Value has no field or method IsZero)
翻了下version note发现这个IsZero是1.13才引入的?为什么gengine文档上写支持1.12.x呢?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with internal/core/is_nil.go at line 32 and compare the reflect.Value API available in Go 1.12.17 with the version used by this code. Verify the compatibility behavior by building or testing with Go 1.12.17; done means the package no longer reports an undefined IsZero method while preserving its nil-checking behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100