Skip to content

nostrability/schemata-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

schemata-go

Test

Go data package for Nostr protocol JSON schemas. Embeds compiled JSON schema files from nostrability/schemata and provides a registry lookup.

Usage

import schemata "github.com/nostrability/schemata-go"

schema, ok := schemata.Get("kind1Schema")
if ok {
    // schema is a json.RawMessage
}

keys := schemata.Keys() // all available schema keys, sorted

API

Function Description
Get(key) (json.RawMessage, bool) Look up a schema by registry key
Keys() []string List all available schema keys

License

GPL-3.0-or-later

About

Nostr protocol JSON schema schemata-go

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages