mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-22 17:37:12 +08:00
17 lines
197 B
Go
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() {}
|