Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for consumeDomainLiteral (0.28 sec)

  1. src/net/mail/message.go

    		}
    		if strings.HasSuffix(atom, ".") {
    			return "", errors.New("mail: trailing dot in atom")
    		}
    	}
    	return atom, nil
    }
    
    // consumeDomainLiteral parses an RFC 5322 domain-literal at the start of p.
    func (p *addrParser) consumeDomainLiteral() (string, error) {
    	// Skip the leading [
    	if !p.consume('[') {
    		return "", errors.New(`mail: missing "[" in domain-literal`)
    	}
    
    	// Parse the dtext
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top