100-go-mistakes/09-concurrency-practice/62-starting-goroutine/listing1/main.go
2021-12-27 15:57:20 +01:00

17 lines
197 B
Go

package main
func main() {
newWatcher()
// Run the application
}
func newWatcher() {
w := watcher{}
go w.watch()
}
type watcher struct { /* Some resources */
}
func (w watcher) watch() {}