Add more net compatibility

Required for net/http.
This commit is contained in:
Federico G. Schwindt
2021-06-01 14:48:15 +01:00
committed by Ron Evans
parent 15d77119c9
commit b092856238
5 changed files with 218 additions and 0 deletions
+13
View File
@@ -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
}