We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very well done Felix!
Foster variables are blähhh! #rant
func fibonacci() func() int { f := []int{0, 1} // child count := 0 // child //... } func main() { f := fibonacci() // parent //... }
You have an idle main thread with select {}.
select {}
Your code:
func Remind(text string, seconds int64) { //... } func main() { go Remind("Time to eat", 10) go Remind("Time to work", 30) go Remind("Time to sleep", 60) select {} }
With three threads:
func Remind(text string, delay time.Duration) { //... } func main() { go Remind("Time to eat", 10) go Remind("Time to work", 30) Remind("Time to sleep", 60) }
Also, I did not know of this feature: t := time.Now().Local().Format("The time is 15.04.05:"). Nice!
t := time.Now().Local().Format("The time is 15.04.05:")
Keep it up!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Very well done Felix!
Tour of Go
Foster variables are blähhh! #rant
Alarm Clock
You have an idle main thread with
select {}
.Your code:
With three threads:
Also, I did not know of this feature:
t := time.Now().Local().Format("The time is 15.04.05:")
. Nice!Keep it up!
The text was updated successfully, but these errors were encountered: