Just a simple demo application to demonstrate some of the Go programming language features. It uses the Marvel API to retrieve a random character. Only Go's standard libraries are used, no external dependencies.
This is part of my Ready, Set, Golang! talk. You can find the slides here
- Install the Go tools in your machine. How to here
- Get API keys from developers.marvel.com Slides
- Set your public and private API keys as environment variables with the following names, e.g.
export MARVEL_PUBLIC_KEY=your_public_key
export MARVEL_PRIVATE_KEY=your_private_key
- Build and run
go run main.go