How to get the index of a slice of type string like in this example, I want 
to test if the index equals to 3 in slice b and print ok.


a:=[int]string("hi","holla","salut") b=append(a) b =append(b,"c") for _, 
count:= range b{ if b[]=3 { fmt.Println("ok") };
Enter code here...


-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8cad2c9e-b4ed-4091-bb85-e894c0f573e5%40googlegroups.com.

Reply via email to