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)
}
-
Notifications
You must be signed in to change notification settings - Fork 1
Merriam Webster Golang API Wrapper
License
murat/mwgoapi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Merriam Webster Golang API Wrapper
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published