Created
February 1, 2019 14:33
-
-
Save melkael/9fd7745e9b94b515a66a272b9dcf6688 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func decodeMultipleStrings() string { | |
f, _ := os.Open("4.txt") | |
fs := bufio.NewScanner(f) | |
for fs.Scan() { | |
txt := fs.Text() | |
decodedString := decoder(txt) | |
if decodedString != "" { | |
return decodedString | |
} | |
} | |
return "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment