<!-- Thanks for filing an issue! Before submitting, please fill in the following information. --> **What would you like to be enhanced** : Group some string vars into string array. **Why is this needed** : **Proposed solution** : [As-is] `src/core/mcis/control.go` ```Go const sshDefaultUserName01 string = "cb-user" const sshDefaultUserName02 string = "ubuntu" const sshDefaultUserName03 string = "root" const sshDefaultUserName04 string = "ec2-user" ... userNames := []string{ userName, givenUserName, sshDefaultUserName01, sshDefaultUserName02, sshDefaultUserName03, sshDefaultUserName04, } ``` [To-be] ```Go var sshDefaultUsername = []string{"cb-user", "ubuntu", "root", "ec2-user"} ... userNames := []string{ userName, givenUserName, sshDefaultUsername[0], sshDefaultUsername[1], sshDefaultUsername[2], sshDefaultUsername[3], } ```
Activity
HassanAlsamahi commentedon Sep 10, 2021
Can I be assigned to this ?
seokho-son commentedon Sep 10, 2021
Sure ! @HassanAlsamahi :)
seokho-son commentedon Sep 10, 2021
/assign @HassanAlsamahi
Merge pull request #725 from HassanAlsamahi/group-strings
seokho-son commentedon Sep 13, 2021
/close