in func openPin(p Pin, write bool) Pin { } It would be better not to call fmt.Printf() and os.Exit(1) inside openPin() instead please return p, err
in
func openPin(p Pin, write bool) Pin {
}
It would be better not to call fmt.Printf() and os.Exit(1) inside openPin()
instead please return p, err