Versions in this module Expand all Collapse all v0 v0.1.0 Oct 9, 2026 Changes in this version + var ErrCoordinateOutOfRange = errors.New("twkb: coordinate out of range") + var ErrInvalidIDs = errors.New("twkb: invalid id list") + var ErrInvalidPrecision = errors.New("twkb: invalid precision") + var ErrMalformed = errors.New("twkb: malformed input") + var ErrUnsupportedGeometry = errors.New("twkb: unsupported geometry") + func Marshal(g geom.T, opts ...Option) ([]byte, error) + func Unmarshal(data []byte) (geom.T, error) + func UnmarshalWithIDs(data []byte) (geom.T, []int64, error) + type Option func(*encoder) + func KeepRepeatedPoints() Option + func Precision(digits int) Option + func PrecisionM(digits int) Option + func PrecisionZ(digits int) Option + func WithBBox() Option + func WithIDs(ids []int64) Option + func WithSize() Option