recordjar

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

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)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(content []byte) []map[string][]string

Parse will parse content into slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL