Skip to content

Instantly share code, notes, and snippets.

@melkael
Created February 1, 2019 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melkael/9fd7745e9b94b515a66a272b9dcf6688 to your computer and use it in GitHub Desktop.
Save melkael/9fd7745e9b94b515a66a272b9dcf6688 to your computer and use it in GitHub Desktop.
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