gokedex/main.go
2025-06-06 13:21:07 -06:00

20 lines
337 B
Go

package main
import (
"time"
"git.eo13-dev.com/enordaz/gokedex/internal/pokeapi"
)
const prompt = "Pokedex > "
func main() {
pokeClient := pokeapi.NewClient(5*time.Second, 5*time.Minute)
catchedPokemon := map[string]pokeapi.Pokemon{}
cfg := &config{
pokeClient: pokeClient,
pokeDex: &catchedPokemon,
}
startRepl(cfg)
}