Dynamically Build Strings

Hello All,

I was wondering how I would approach dynamically building strings based on a length of slice.

Link to playground with starting slice and what the final string should look like.


The length and values of the string will change based on user input.

Thanks in advanced for your help!

Does this do what you want? https://play.golang.org/p/razxvQj4MVm

Wow, that works great. Thank you!

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