The purpose of this was to quickly try out some theory for a larger project and see how proficient I am on the command line.
See the repo by clicking here.
%v
placeholdersPrintf()
output that incorporates string with placeholders initialised before reading second inputThe Printf()
function should be able to act as normal
It did act as normal, so the value placeholders do not become invalid through parsing/storing in memory.
The problems came when trying to select options from the slices 😅
go run main.go
Run that from within the directory and it will start the application and prompt you for an input.
Note This has absolutely no safeguarding so will panic if the input isn’t as expected i.e not a number from the lists of options
This was just for fun, and I wanted to see if I could throw this all together super quick from the terminal, which I have done. Check it: