Source File
userid.go
Belonging Package
golang.org/x/crypto/openpgp/packet
package packet
import (
)
if hasInvalidCharacters() || hasInvalidCharacters() || hasInvalidCharacters() {
return nil
}
:= new(UserId)
.Name, .Comment, .Email = , ,
.Id =
if len() > 0 {
if len(.Id) > 0 {
.Id += " "
}
.Id += "("
.Id +=
.Id += ")"
}
if len() > 0 {
if len(.Id) > 0 {
.Id += " "
}
.Id += "<"
.Id +=
.Id += ">"
}
return
}
. =
= 1
fallthrough
if == '(' {
= 2
. =
} else if == '<' {
= 5
. =
}
. =
= 3
fallthrough
if == ')' {
= 4
. =
}
if == '<' {
= 5
}
. =
= 6
fallthrough
if == '>' {
= 7
. =
}
}
}
switch {
. = len()
. = len()
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |