DEV Community

Discussion on: Attempting to Learn Go - Sorting and Moving Files by Extension

Collapse
 
shindakun profile image
Steve Layton

Thanks for the comment! I kind of touched on that in the post. I have given myself an arbitrary time limit to get these posts up. It was looking like I may not hit it so I never went back and added it. The original plan was a map[string][]string with the document folder and then the array of extensions. As it is now, the switch wouldn't be that bad if I got rid of the repetitive error code as well.