package future import () func Go(f func() error) chan error { ch := make(chan error) go func() { ch <- f() }() return ch }