Skip to content
Record jar (https://tools.ietf.org/html/draft-phillips-record-jar-01) support for the Go language.
Go Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testdata
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
Makefile
README.md
go.mod
go.sum
parser.go
recordjar.go
recordjar_test.go
scanner.go
utils.go

README.md

go-record-jar

Build Status GoDoc Go Report Card codecov License

go-record-jar provide support for Record jar

Quickstart

Let's parse the Language Subtag Registry spec

url := "https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry"
resp, err := http.Get(url)
if err != nil {
    log.Fatalf("downloadLanguageSubtagRegistry http.Get failed for %v", err)
}
defer resp.Body.Close()

content, err := ioutil.ReadAll(resp.Body)
if err != nil {
    log.Fatalf("downloadLanguageSubtagRegistry ioutil.ReadAll failed for %v", err)
}

data := recordjar.Parse(content)
You can’t perform that action at this time.