I'd like to write a function able to generate an array of string with iteration in Go programming language.
Enter a unique name for the signal path in the field titled Description. Since the field features an iterator, multiple, consecutively counted signal paths can be set-up by using curly brackets, for example "Source {1-16:2} {Left, Right} >"
The result is an array of string:
Source 01 Left >
Source 01 Right >
Source 02 Left >
Source 02 Right >
...
Source 16 Left >
Source 16 Right >
I could have an undefined curly brackets iterator in the string.
The first curly brackets {1-16:2} indicate 1-16 : increment value from 1 to 16 :2 is the padding that means two digits
The second curly brackets [Left, Right} indicate a defined list of value.