Categorygithub.com/sfomuseum/go-geojsonld
repositorypackage
1.0.0
Repository: https://github.com/sfomuseum/go-geojsonld.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

go-geojson-ld

Go package for converting GeoJSON Feature records in to GeoJSON-LD records.

Documentation

Go Reference

Example

package main

import (
	"context"
	"flag"
	"fmt"
	"github.com/sfomuseum/go-geojsonld"
	"os"
)

func main() {

	flag.Parse()

	ctx := context.Background()

	for _, path := range flag.Args() {
	
		fh, _ := os.Open(path)
		
		body, _ := geojsonld.AsGeoJSONLDWithReader(ctx, fh)
		fmt.Println(string(body))
	}
}

See also