Skip to content

Instantly share code, notes, and snippets.

@boboTjones
Created October 17, 2012 16:17
Show Gist options
  • Select an option

  • Save boboTjones/3906457 to your computer and use it in GitHub Desktop.

Select an option

Save boboTjones/3906457 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"time"
)
func main() {
momloop := func() {
for
{
time.Sleep(1 * time.Second)
fmt.Printf("mom?\n")
}
}
go momloop()
}
@boboTjones
Copy link
Author

package main

import (
"fmt"
"time"
)

func momloop() {
for
{
time.Sleep(1 * time.Second)
fmt.Printf("mom?\n")
}
}

func main() {

momloop()

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment