Quantcast
Channel: pass constant list (immutable) in variadic in Go - Stack Overflow
Viewing all articles
Browse latest Browse all 2

pass constant list (immutable) in variadic in Go

$
0
0
var state = [...]string{"new","submitted","approved","rejected",}In(values ...interface{}) {  return}

I need to pass an immutable list to a variadic function in go


Viewing all articles
Browse latest Browse all 2

Trending Articles