Skip to content

Instantly share code, notes, and snippets.

@edib
Created June 27, 2016 14:21
Show Gist options
  • Save edib/2c11f3179875ed44fbb31e7efbff57e6 to your computer and use it in GitHub Desktop.
Save edib/2c11f3179875ed44fbb31e7efbff57e6 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func main() {
for {
fmt.Print("Enter text: ")
var input string
fmt.Scanln(&input)
if input != "" {
fmt.Print(input," \n")
} else {
return
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment