Skip to content

Instantly share code, notes, and snippets.

@adhithyan15
Created May 10, 2015 23:52
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 adhithyan15/6d2bc2bd938b5ce37623 to your computer and use it in GitHub Desktop.
Save adhithyan15/6d2bc2bd938b5ce37623 to your computer and use it in GitHub Desktop.
While loop in Go
package main
import "fmt"
func main(){
counter := 1
for{
if counter > 10{
break;
}
fmt.Println("Hello")
counter++
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment