"or main could be lazy and let `error<-` panic when err != nil:"
* would require that `action`'s signature be `func action() (string,
error<-)`
On Monday, January 9, 2023 at 12:10:25 PM UTC-8 Oliver Smith wrote:
> A complete example (followed by the code it replaced):
>
> ```
> package main
>
>
A complete example (followed by the code it replaced):
```
package main
import (
"fmt"
"os"
)
func getMotd() (string, error<-) {
motd, error<- := os.ReadFile("/etc/motd")
return "MOTD:\n---\n" + string(motd) + "\n---\n", nil
}
func getPwd() (string, error<-) {
pwd, error<- :