If there is a recursive function, it gets reported as func reference XYZ is after definition
E.g:
funcDeepCopyValue(valueany) any {
switchv:=value.(type) {
casemap[string]any:
newV:=make(map[string]any)
fork, val:=rangev {
newV[k] =DeepCopyValue(val)
}
returnnewVcase []any:
sliceCopy:=make([]any, len(v))
fori, elem:=rangev {
sliceCopy[i] =DeepCopyValue(elem)
}
returnsliceCopydefault:
returnv
}
}This will report: func reference DeepCopyValue is after definition
If there is a recursive function, it gets reported as
func reference XYZ is after definitionE.g:
This will report:
func reference DeepCopyValue is after definition