100-go-mistakes/src/09-concurrency-practice/62-starting-goroutine/listing1/main.go
Teiva Harsanyi b7a7eb62fe Merging desc
2023-09-12 00:44:52 +02: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() {}