https://github.com/murat/mwgoapi
Merriam Webster Golang API Wrapper
https://github.com/murat/mwgoapi
api-wrapper golang merriam-webster-api
Last synced: 2 months ago
JSON representation
Merriam Webster Golang API Wrapper
- Host: GitHub
- URL: https://github.com/murat/mwgoapi
- Owner: murat
- License: mit
- Created: 2022-05-04T22:02:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T17:41:00.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T02:27:09.710Z (4 months ago)
- Topics: api-wrapper, golang, merriam-webster-api
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Merriam Webster Golang API Wrapper
[](https://www.codacy.com/gh/murat/mwgoapi/dashboard?utm_source=github.com&utm_medium=referral&utm_content=murat/mwgoapi&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/murat/mwgoapi/dashboard?utm_source=github.com&utm_medium=referral&utm_content=murat/mwgoapi&utm_campaign=Badge_Coverage)## Usage examples
```golang
func main() {
c := mwgoapi.NewClient(&http.Client{}, mwgoapi.BaseURL, "YOUR_API_KEY")
r, err := c.Get("hello")
if err != nil {
fmt.Printf("could not get response, err: %v\n", err)
os.Exit(1)
}var collegiateResponse []mwgoapi.Collegiate
if err := c.UnmarshalResponse(r, &collegiateResponse); err != nil {
fmt.Printf("could not unmarshal response, err: %v\n", err)
os.Exit(1)
}fmt.Println(collegiateResponse)
}
```- [murat/dicterm](https://github.com/murat/dicterm)