package main func worker() {} func init() { spawn(worker) // ERROR: spawn not allowed in init } func main() { }