ip2loc

package module
v0.0.0-...-31d56bd Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 3 Imported by: 0

README

Source

Thanks

Usage

package main

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IP2loc

func IP2loc(ip string) (loc datx.Location, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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