Update dependencies

This commit is contained in:
bluepython508 committed 2024-11-01 17:43:06 +00:00
1 parent 033ac0b400
commit 5cdfab398d
3596 files changed
+1033483 -259

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
package memconn
// Addr represents the address of an in-memory endpoint.
type Addr struct {
// Name is the name of the endpoint.
Name string
network string
}
// Buffered indicates whether or not the address refers to a buffered
// network type.
func (a Addr) Buffered() bool {
return a.network == networkMemb
}
// Network returns the address's network.
func (a Addr) Network() string {
return a.network
}
// String returns the address's name.
func (a Addr) String() string {
return a.Name
}