To open the
README.md
file in preview mode press down⇧ + ⌘ + v
for Mac orshift + ctrl + v
for Windows.
This repo houses the quickstart example part of the alis.exchange documentation for Go.
We have preconfigured the development environment for you to easily make your first request without having to worry about any setup.
- Open up the terminal (Mac:
⌘ + j
, Windows:ctrl + j
) and ensure that you are in theplayground-GO
directory.
If executing this example on Gitpod, run the following command from the terminal if you are not in the playground-GO
directory:
$ cd workspace/playground-GO
- Clear the terminal by running:
$ clear
- Run the code by running the terminal command:
$ go run *.go
Interested in trying something for yourself?
We suggest creating your own function and incorporating a request to the BooksClient
. Some suggestions of things to try:
- Loop through all the books and print out the author.
- Get a book and wrangle the response to be printed out in a sentence structure.
- Use the response of
ListBooks
to make multipleGetBook
requests.
Ready to join alis.exchange? Get in touch.