Documentation
¶
Overview ¶
Package serialize decodes the gzipped binary blobs the library embeds for its metadata and prefix lookups (carrier, geocoding, timezone, and region maps).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeUnzip ¶
DecodeUnzip gunzips data and returns the decompressed bytes.
Types ¶
type IntStringArrayMap ¶
IntStringArrayMap is our map from an int to an array of strings; this is used for our timezone and region maps.
func LoadIntArrayMap ¶
func LoadIntArrayMap(data []byte) (*IntStringArrayMap, error)
LoadIntArrayMap decodes a key->[]string map from a gzipped binary blob.
type IntStringMap ¶
IntStringMap is our data structure for maps from prefixes to a single string; this is used for our carrier and geocoding maps.
func LoadPrefixMap ¶
func LoadPrefixMap(data []byte) (*IntStringMap, error)
LoadPrefixMap decodes a prefix->string map from a gzipped binary blob.
Click to show internal directories.
Click to hide internal directories.