Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.32 KB

File metadata and controls

50 lines (35 loc) · 1.32 KB

openbd

Travis branch codecov Go Report Card codebeat badge GoDoc GitHub license

About

Install

$ go get -u github.com/osamingo/openbd

Usage

package main

import (
    "fmt"

    "github.com/osamingo/openbd"
)

func main() {

    cli, err := openbd.NewClientV1("https://api.openbd.jp", nil)
    if err != nil {
        panic(err)
    }
    
    isbn := "9784780802047"
    m, err := cli.Get(isbn)
    if err != nil {
        panic(err)
    }

    fmt.Println(m[isbn].Title())
}

License

Released under the MIT License.