V8031. Using the call of the 'len' function as an index will result in an off-by-one error.
V8031 Using the call of the 'len' function as index will cause off-by-one error. Consider using 'len(slice) - 1' instead. vector.go 28
func (vec *Vector) Push(value core.Value) *Vector {
slice := vec.getCurrentSlice()
slice[len(slice)] = value
return vec
}
V8031 Using the call of the 'len' function as index will cause off-by-one error. Consider using 'len(b) - 1' instead. ast.go 138
type BasicLitList []*BasicLit
....
func (b BasicLitList) End() token.Pos {
return b[len(b)].End()
}