Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ParseAddress (0.21 sec)

  1. src/net/mail/message.go

    	}
    	if len(addrs) > 1 {
    		return nil, errors.New("mail: group with multiple addresses")
    	}
    	return addrs[0], nil
    }
    
    // parseAddress parses a single RFC 5322 address at the start of p.
    func (p *addrParser) parseAddress(handleGroup bool) ([]*Address, error) {
    	debug.Printf("parseAddress: %q", p.s)
    	p.skipSpace()
    	if p.empty() {
    		return nil, errors.New("mail: no address")
    	}
    
    	// address = mailbox / group
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. src/net/mail/message_test.go

    		}
    
    		// Check round-trip.
    		if test.addr.Address != "" && test.addr.Address != "@" {
    			a, err := ParseAddress(test.exp)
    			if err != nil {
    				t.Errorf("ParseAddress(%#q): %v", test.exp, err)
    				continue
    			}
    			if a.Name != test.addr.Name || a.Address != test.addr.Address {
    				t.Errorf("ParseAddress(%#q) = %#v, want %#v", test.exp, a, test.addr)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. src/net/mail/example_test.go

    		fmt.Println(v.Name, v.Address)
    	}
    
    	// Output:
    	// Alice ******@****.***
    	// Bob ******@****.***
    	// Eve ******@****.***
    }
    
    func ExampleParseAddress() {
    	e, err := mail.ParseAddress("Alice <******@****.***>")
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	fmt.Println(e.Name, e.Address)
    
    	// Output:
    	// Alice ******@****.***
    }
    
    func ExampleReadMessage() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/formats.go

    )
    
    var supportedFormats = sets.NewString(
    	"bsonobjectid", // bson object ID
    	"uri",          // an URI as parsed by Golang net/url.ParseRequestURI
    	"email",        // an email address as parsed by Golang net/mail.ParseAddress
    	"hostname",     // a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
    	"ipv4",         // an IPv4 IP as parsed by Golang net.ParseIP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 09 09:26:38 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types_jsonschema.go

    	//
    	// - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
    	// - uri: an URI as parsed by Golang net/url.ParseRequestURI
    	// - email: an email address as parsed by Golang net/mail.ParseAddress
    	// - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
    	// - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
    	// - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema.go

    	//
    	// - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
    	// - uri: an URI as parsed by Golang net/url.ParseRequestURI
    	// - email: an email address as parsed by Golang net/mail.ParseAddress
    	// - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
    	// - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
    	// - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto

      //
      // - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
      // - uri: an URI as parsed by Golang net/url.ParseRequestURI
      // - email: an email address as parsed by Golang net/mail.ParseAddress
      // - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
      // - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
      // - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto

      //
      // - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
      // - uri: an URI as parsed by Golang net/url.ParseRequestURI
      // - email: an email address as parsed by Golang net/mail.ParseAddress
      // - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
      // - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
      // - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/testdata/swagger.json

    Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 18:37:59 UTC 2023
    - 55.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/generated/openapi/zz_generated.openapi.go

    Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:17 UTC 2024
    - 329.7K bytes
    - Viewed (0)
Back to top