func makeHand() (*kh.Hand, error) { currentUser, _ := user.Current() kh.HandHome = path.Join(currentUser.HomeDir, "/.kh") kh.Logger = log h, err := kh.MakeHand(kh.HandHome) if err != nil { log.Debug("Encountered error finding fingers") log.Debug("Error was %s", err.Error()) } return h, err }
func makeHand() *kh.Hand { currentUser, _ := user.Current() kh.HandHome = path.Join(currentUser.HomeDir, "/.kh") kh.Logger = log h, err := kh.MakeHand(kh.HandHome) if err != nil { fmt.Println("Encountered error finding fingers") fmt.Printf("Error was %s", err.Error()) os.Exit(1) } return h }