go-bdd / gobdd

BDD framework
https://go-bdd.github.io/gobdd/
MIT License
115 stars 19 forks source link

Generate slice getters/setters in the context #112

Closed sagikazarmark closed 3 years ago

sagikazarmark commented 4 years ago

Is your feature request related to a problem? Please describe. I'd like to manage slices in the context easily.

Describe the solution you'd like Generate slice variants for the current set of primitive types.

Describe alternatives you've considered Using plain Get is quite cumbersome at the moment. GetAs could be an alternative as proposed in #89

bkielbasa commented 4 years ago

personally, I'd prefer GetAs function. If we choose this solution we'll do the same for maps as well.