p
Size: a a a
RS
DF
ЯК
func (x *Limits) GetLimits() []*Limit {
if x != nil {
return x.Value
}
return nil
}type someStruct struct {
val int64
}
func (s *someStruct) Val() {
if s != nil {
log.Info("s != nil")
} else {
log.Error("s is nil!")
}
}
func Some(s *someStruct) {
s.Val()
}
func main() {
s := &someStruct{}
s.Val()
s = nil
Some(s)
}INFO[0000] s != nil
ERRO[0000] s is nil!
func (s *someStruct) Val()
func Val(s *someStruct)
Lk
SN
VS
ВС
ВС
SN
VS
ВС
ВС
SN