Debian Codegraph @

sshkey/_examples/main.go

raw
1 package main
2
3 import (
4 "fmt"
5
6 "github.com/charmbracelet/x/sshkey"
7 )
8
9 func main() {
10 // password is "asd".
11 signer, err := sshkey.Open("./key")
12 if err != nil {
13 panic(err)
14 }
15
16 if signer != nil {
17 fmt.Println("Key opened!")
18 }
19 }