Versions in this module Expand all Collapse all v1 v1.0.0 Oct 15, 2019 Changes in this version + const Json + const Protobuf + type Client struct + func NewClient(config *Config) *Client + func NewJsonClient(host string, port int) *Client + func NewProtobufClient(host string, port int) *Client + func (cli *Client) GetAllProvince() []*Model + func (cli *Client) GetAreaByCityCode(code string) []*Model + func (cli *Client) GetCityByProvinceCode(code string) []*Model + func (cli *Client) GetStreetByAreaCode(code string) []*Model + type Config struct + Host string + Port int + ResponseType string + type Model struct + Code string + Id int64 + Lat float64 + Lng float64 + Name string + ShortName string + func (m *Model) String() string