CountryLookup (country_lookup v0.0.1)

View Source

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Lookup by area code (e.g., "7840", "93", "35818"). Returns a map: %{name: ..., flag_svg: ...} or nil if not found.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(_)

Callback implementation for GenServer.init/1.

lookup_by_code(code)

Lookup by area code (e.g., "7840", "93", "35818"). Returns a map: %{name: ..., flag_svg: ...} or nil if not found.

start_link(opts)