commit | 1c9e587b90172e7654db897d8c938ffc665e1673 | [log] [tgz] |
---|---|---|
author | 6543 <6543@obermui.de> | Mon Mar 22 21:16:27 2021 +0000 |
committer | Emmanuel Odeke <emmanuel@orijtech.com> | Mon Mar 22 21:35:40 2021 +0000 |
tree | 9e3f10e17a81e7cfd042003b80c05e1da3d1ae70 | |
parent | d9691ffa37820e2a7e70679164eac29c675874b2 [diff] |
net: add IP.IsPrivate Adds a new method IsPrivate to check if an IP is private according to RFC 1918 & RFC 4193. Fixes #29146 Change-Id: If77b9e1746d86029df66ae9f18437b1f65a18b59 GitHub-Last-Rev: 09f4ba75988c87b90550d071866ab1d6634ef681 GitHub-Pull-Request: golang/go#42793 Reviewed-on: https://go-review.googlesource.com/c/go/+/272668 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://golang.org/doc/contribute.html.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.