ip2loc

package module
v0.0.0-...-a9b8294 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 3 Imported by: 0

README

Source

Thanks

Usage

package main

import (
        "fmt"
        "github.com/honwen/ip2loc"
)

func main() {
        if loc, err := ip2loc.IP2loc("8.8.8.8"); err != nil {
                fmt.Printf("%+v", err)
        } else {
                fmt.Printf("%+v", loc)
        }
}

Assets

go get github.com/rakyll/statik
statik -src=assets -f

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IP2loc

func IP2loc(ip string) (loc *ipdb.CityInfo, err error)

Types

This section is empty.

Directories

Path Synopsis
cmd
ip2loc command

Jump to

Keyboard shortcuts

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