On Sat, Aug 13, 2016 at 4:41 AM, Vasily Korytov <vkory...@4tifier.com> wrote:
> Hi,
>
> I have an interface{} variable that can be either string or a list of string
> (yes, that's bad design, I know).

Your code below indicates that you're storing a []interface{} not an []string.

> Have I overlooked something and there is a way to do it in a more graceful
> and effective way?

Could you instead store a []string in your interface{} instead of an
[]interface{}?

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to