thoas / go-funk

A modern Go utility library which provides helpers (map, find, contains, filter, ...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement funk.If (short if) enhancement

leowilbur opened this issue · comments

funk.If(condition, true, false)

commented

hi @leowilbur, could you add an example for someone which wants to take the issue?

Thank you.

@thoas There's no need for that. The long time missing of ternary expression is a big problem in Golang already

Would like to work on this, if it's not already taken @thoas @stevefan1999-personal @leowilbur

commented

@reetuparna you can take it! Not a big fan of ternary expression (for visibility reason) :)