Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| // This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "golang.org/x/crypto/ssh" |
| /* Using reflect.MakeFunc to fetch from map[string]interface{}. | |
| * getString(key) will either return the 'string' value or empty string. | |
| * getInt(key) will either return the 'int' value or a 0. | |
| */ | |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" |