gofirm provides a simple API for user confirmation from stdin
import (
"github.com/abelfletcher/gofirm"
)
func main() {
if gofirm.Proceed("Create directory /home/stuff") {
// create /home/stuff
}
}
go get github.com/abelfletcher/gofirm