Polygon detection methods for Go.
Josh Baker @tidwall
Poly source code is available under the MIT License.