I need delete or resize isPrime array after CalRange func called (isPrime=nil not working)
isPrime := [size]bool{}
CalRange(size, maxİndex, isPrime[:])
isPrime = nil
Thanks all for answers I solve it like that. How to delete struct object in go?
person1 := &Person{name: "Name", age: 69}
// work with person1
// Clear person1:
person1 = nil