Skip to content

mbakin/iptracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP Tracker CLI

cobra logo

Cobra is a library for creating powerful modern CLI applications. This project is a CLI application built using Cobra.

Go Reference Go Report Card

Installing

Clone this project

https://github.com/mbakin/iptracker.git

Open project

cd iptracker

Using Cobra is easy. First, use go get to install the latest version of the library.

go get -u github.com/spf13/cobra@latest

Next, include Cobra in your application:

import "github.com/spf13/cobra"

Directory Structure

.iptracker
├── cmd
│   ├── root.go
│   ├── trace.go
│   ├── version.go   
├── go.mod
├── go.sum
├── main.go

IP Information

IP Info Model:

type Ip struct {
	Ip       string `json:"ip"`
	City     string `json:"city"`
	Region   string `json:"region"`
	Country  string `json:"country"`
	Loc      string `json:"loc"`
	Timezone string `json:"timezone"`
}

Commands

The following commands are executed using the iptracker command

cobra logo

Run this command to get the address information of the IP address iptracker trace X.X.X.X

cobra logo

Licenses

MIT

MIT License GPLv3 License AGPL License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages