Skip to content

Instantly share code, notes, and snippets.

@amireshoon
Created August 14, 2020 11:49
Show Gist options
  • Save amireshoon/e051d48e98177d43b7fe4735a9d134e7 to your computer and use it in GitHub Desktop.
Save amireshoon/e051d48e98177d43b7fe4735a9d134e7 to your computer and use it in GitHub Desktop.
Creating loop
package main
import "bufio"
func main() {
reader := bufio.NewReader(os.Stdin)
a, err := reader.ReadString('\n')
if err != nil {
panic("input error")
}
for i := 0; i < len(a)-1; i++ {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment