Setup a wizard in go

hi, I want to setup something like a wizard, I print all the values of an array and I want to ask to the user which one he wants to keep on the scope for the tool and then go on on the tool, let’s say a filtering made by the user.

how can I do that?

Imagine it returns an array like [{123} {456} {789} {000}] and the user wants to keep just the first and third element. once he selected those 2 numbers the tool can go on.
Lemme know, thank you

Are you talking about filtering? You can found an example how it should be done here - SliceTricks

yes I mean like:

do you want to keep this value? (yes/no)

if he writes no it gets deleted otherwise it goes on, thx for the sharing it will help :+1:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.