2
0

Add comment to Polygon.Set()

This commit is contained in:
duohedron
2020-10-06 09:32:08 +02:00
committed by Jack Christensen
parent 8aa7211df5
commit b55f972f49
+6
View File
@@ -17,6 +17,12 @@ type Polygon struct {
Status Status
}
// Set converts src to dest.
//
// src can be nil, string, []float64, and []pgtype.Vec2.
//
// If src is string the format must be ((x1,y1),(x2,y2),...,(xn,yn)).
// Important that there are no spaces in it.
func (dst *Polygon) Set(src interface{}) error {
if src == nil {
dst.Status = Null