Mercurial > go > multipass
comparison multipass-add.go @ 10:1246b4b9028b
Add tool to remove passwords.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 25 Oct 2015 11:47:20 -0400 |
parents | 406d3cd76739 |
children |
comparison
equal
deleted
inserted
replaced
9:e58bfc7fc207 | 10:1246b4b9028b |
---|---|
11 "pfish.zone/go/multipass/file" | 11 "pfish.zone/go/multipass/file" |
12 ) | 12 ) |
13 | 13 |
14 func main() { | 14 func main() { |
15 passfile, err := file.ForMe() | 15 passfile, err := file.ForMe() |
16 if err != nil { | |
17 fmt.Println(err.Error()) | |
18 os.Exit(1) | |
19 } | |
16 reader := bufio.NewReader(os.Stdin) | 20 reader := bufio.NewReader(os.Stdin) |
17 fmt.Print("Describe password: ") | 21 fmt.Print("Describe password: ") |
18 text, err := reader.ReadString('\n') | 22 text, err := reader.ReadString('\n') |
19 if err != nil { | 23 if err != nil { |
20 fmt.Println(err.Error()) | 24 fmt.Println(err.Error()) |