mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-18 11:33:56 +00:00
Add more net compatibility
Required for net/http.
This commit is contained in:
committed by
deadprogram
parent
9432cd8adb
commit
a51f3399cb
@@ -0,0 +1,13 @@
|
||||
// The following is copied from Go 1.16 official implementation.
|
||||
|
||||
// Copyright 2010 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package net
|
||||
|
||||
// IPAddr represents the address of an IP end point.
|
||||
type IPAddr struct {
|
||||
IP IP
|
||||
Zone string // IPv6 scoped addressing zone
|
||||
}
|
||||
Reference in New Issue
Block a user