On Mon, Sep 11, 2017 at 7:32 AM, Jakob Borg <ja...@kastelo.net> wrote:

> The clean way to do this, in my opinion, is to make your item/element a
> type that knows whether it's failed or not.
>
> https://play.golang.org/p/K_t8iEZvUc
>
> You can also inject strings.Contains or similar using
> https://golang.org/pkg/html/template/#Template.Funcs
>
>
Or return the strings in two separate slices -- one for the "good" and the
other for the failed. It would not only solve this problem, but allow you
to separate the failed ones visually.

-- 
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