Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Sep 13, 2021
1 parent fed4817 commit a247f1c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Expand Up @@ -10,18 +10,11 @@ An SSH key pair generator. Supports generating RSA and Ed25519 keys.
## Example

```go
k, err := NewSSHKeyPair(".ssh", "my_awesome_key", []byte(""), key.Ed25519)
k, err := NewWithWrite(".ssh", "my_awesome_key", []byte(""), key.Ed25519)
if err != nil {
fmt.Printf("error creating SSH key pair: %v", err)
os.Exit(1)
}
if !k.KeyPairExist() {
err = k.WriteKeys()
if err != nil {
fmt.Printf("error writing SSH key pair: %v", err)
os.Exit(1)
}
}
```

## License
Expand Down

0 comments on commit a247f1c

Please sign in to comment.