Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ isGpgKeyArmored
Function
isGpgKeyArmored
pkg/cmd/gpg-key/add/http.go:66–68 ·
view source on GitHub ↗
(keyBytes []byte)
Source
from the content-addressed store, hash-verified
64
}
65
66
func
isGpgKeyArmored(keyBytes []byte) bool {
67
return
bytes.Contains(keyBytes, []byte(
"-----BEGIN "
))
68
}
Callers
1
gpgKeyUpload
Function · 0.85
Calls
1
Contains
Method · 0.80
Tested by
no test coverage detected