Hi, 

I am using go-1.14.1. I am using this code to remove i-th element from the 
slice.

s = append(s[:i], s[i+1:]...) 

It works on my machine but gives panic on docker-container with error 
"range out of bound" when it has just 1 element left. 

I want to check if this is an unsafe code and how can I improve this?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/af5d785e-a93a-44e5-afdf-93056966c4e7%40googlegroups.com.

Reply via email to