repl

command module
v0.0.0-...-7233e82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 8 Imported by: 0

README

Repl

CLI app in Go that fetches data from an API and displays it in the terminal.

Learning objectives
  • Parsing JSON in Go from a public API
  • Making HTTP requests in Go using the net/http standard library package
  • Building a CLI tool that makes interacting with a back-end server easier
  • Caching and how to use it to improve performance
API data

The project uses the Locations and Pokemon endpoints of the PokeApi

Repl commands
Commands Description
map Lists the next page of location areas
mapb Lists the previous page of location areas
explore {location_area} Lists the pokemons in a location areas
catch {pokemon_name} Attempt to catch a pokemon and add it to your pokedex
inspect {pokemon_name} View info about a caught pokemon
pokedex View all the pokemon in your pokedex
help Displays a help message and lists available commands
exit Exit the pokedex
To run
  1. Install Go 1.21 or later for your machine (latest stable version)
  2. Clone the repo locally
  3. Run: go build && ./your-local-directory
  4. Fun!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL