encoding/pem.Block.Type (field)
12 uses
encoding/pem (current package)
pem.go#L28: Type string // The type, taken from the preamble (i.e. "RSA PRIVATE KEY").
pem.go#L109: Type: string(typeLine),
pem.go#L252: if _, err := out.Write([]byte(b.Type + "-----\n")); err != nil {
pem.go#L299: _, err := out.Write([]byte(b.Type + "-----\n"))
crypto/tls
tls.go#L256: if certDERBlock.Type == "CERTIFICATE" {
tls.go#L259: skippedBlockTypes = append(skippedBlockTypes, certDERBlock.Type)
tls.go#L286: if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {
tls.go#L289: skippedBlockTypes = append(skippedBlockTypes, keyDERBlock.Type)
crypto/x509
cert_pool.go#L213: if block.Type != "CERTIFICATE" || len(block.Headers) != 0 {
pem_decrypt.go#L225: Type: blockType,
x509.go#L1628: if block != nil && block.Type == pemType {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)