Proposal Details
The Line function doesn't allow you to write known host lines with the optional @cert-authority and @revoked markers, I suggest we introduce a new function:
const MarkerCert = "@cert-authority"
const MarkerRevoked = "@revoked"
func LineWithMarker(marker string, addresses []string, key ssh.PublicKey) string {
if marker != "" {
return marker + " " + Line(addresses, key)
} else {
return Line(addresses, key)
}
}