Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2024 Changes in this version + const FieldKeyCoordinates + const FieldKeyGeometries + const FieldKeyType + var ErrUnknownFeatureType = fmt.Errorf("unknown feature type") + func Marshal(v interface{}) ([]byte, error) + func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func Unmarshal(data []byte) (feature interface{}, err error) + type ErrMissingField string + func (err ErrMissingField) Error() string + func (err ErrMissingField) Is(target error) bool + type Feature struct + Geometry Geometry + ID *uint64 + Properties map[string]interface{} + Type featureType + type FeatureCollection struct + Features []Feature + Type featureCollectionType + type Geometry struct + func (geo *Geometry) UnmarshalJSON(b []byte) (err error) + func (geo Geometry) MarshalJSON() ([]byte, error) + type JsonType string + const FeatureCollectionType + const FeatureType + const GeometryCollectionType + const LineStringType + const MultiLineStringType + const MultiPointType + const MultiPolygonType + const PointType + const PolygonType