Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murat/mwgoapi
Merriam Webster Golang API Wrapper
https://github.com/murat/mwgoapi
api-wrapper golang merriam-webster-api
Last synced: 19 days 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T17:41:00.000Z (over 2 years ago)
- Last Synced: 2024-10-30T07:45:43.508Z (2 months ago)
- Topics: api-wrapper, golang, merriam-webster-api
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Merriam Webster Golang API Wrapper
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/eaa91a77066b494b8c357992f12a979b)](https://www.codacy.com/gh/murat/mwgoapi/dashboard?utm_source=github.com&utm_medium=referral&utm_content=murat/mwgoapi&utm_campaign=Badge_Grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/eaa91a77066b494b8c357992f12a979b)](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)