csv

package
v0.0.0-...-6a36419 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CVS

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

func New

func New(r io.Reader) *CVS

func (*CVS) Next

func (c *CVS) Next() bool

func (*CVS) Value

func (c *CVS) Value() (Line, error)

type Line

type Line struct {
	IP net.IP

	Geolocation_id      string
	City_name           string
	State_name          string
	Country_name        string
	Country_code_alpha2 string
	Country_code_alpha3 string
	Location            *Location
	Score               float32
	// contains filtered or unexported fields
}

func (Line) Network

func (l Line) Network() net.IPNet

type Location

type Location struct {
	Latitude  float64
	Longitude float64
}

Jump to

Keyboard shortcuts

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