Skip to content
This repository has been archived by the owner on Oct 24, 2020. It is now read-only.

emersion/go-jsonld

Repository files navigation

go-jsonld

GoDoc Build Status

A Go library for JSON-LD.

Usage

type Person struct {
	ID string `jsonld:"@id"`
	Name string `jsonld:"http://schema.org/name"`
}

const jsonString = `{
  "@id": "http://me.markus-lanthaler.com/",
  "http://schema.org/name": "Manu Sporny"
}`

var p Person
if err := jsonld.Unmarshal([]byte(jsonString), &p); err != nil {
	log.Fatal(err)
}

log.Printf(&p)

License

MIT

Releases

No releases published

Packages

No packages published

Languages