fb

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serialize

func Serialize(geonames []string, country [3][]string, region [2][]string, city, cityCode []byte) []byte

Types

type Location

type Location struct {
	Geo                                   *Str
	CountryCode, CountryFlag, CountryName *Str
	RegionName, RegionCode                *Str
	City, CityCode                        *roaring.BSI
	// contains filtered or unexported fields
}

func New

func New(data []byte) *Location

func (*Location) Translate

func (g *Location) Translate(region string) []byte

type Str

type Str struct {
	// contains filtered or unexported fields
}

func (*Str) Get

func (g *Str) Get(i int) []byte

func (*Str) Search

func (g *Str) Search(key []byte) (int, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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