MCPcopy 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
66func isGpgKeyArmored(keyBytes []byte) bool {
67 return bytes.Contains(keyBytes, []byte("-----BEGIN "))
68}

Callers 1

gpgKeyUploadFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected