Documentation
¶
Overview ¶
package writer provides common methods for writing Who's On First documents with `whosonfirst/go-writer.Writer` instances.
Index ¶
- func WriteBytes(ctx context.Context, wr go_writer.Writer, body []byte) error
- func WriteBytesWithExporter(ctx context.Context, wr go_writer.Writer, ex export.Exporter, body []byte) error
- func WriteFeature(ctx context.Context, wr go_writer.Writer, f *geojson.Feature) error
- func WriteFeatureWithExporter(ctx context.Context, wr go_writer.Writer, ex export.Exporter, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteBytes ¶ added in v1.0.0
WriteBytes will write 'body' using 'wr' using a default `whosonfirst/go-whosonfirst-export/v2.Exporter` instance.
func WriteBytesWithExporter ¶ added in v1.0.0
func WriteBytesWithExporter(ctx context.Context, wr go_writer.Writer, ex export.Exporter, body []byte) error
WriteBytesWithExporter will write 'body' using 'wr' using a custom `whosonfirst/go-whosonfirst-export/v2.Exporter` instance.
func WriteFeature ¶
WriteFeature will serialize and write 'f' using 'wr' using a default `whosonfirst/go-whosonfirst-export/v2.Exporter` instance.
func WriteFeatureWithExporter ¶ added in v1.0.0
func WriteFeatureWithExporter(ctx context.Context, wr go_writer.Writer, ex export.Exporter, f *geojson.Feature) error
WriteFeatureWithExporter will serialize and write 'f' using 'wr' using a custom `whosonfirst/go-whosonfirst-export/v2.Exporter` instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.