Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 604 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 604 Bytes

TRANSLATE HOST TO IP

gopherbadger-tag-do-not-edit

This is a small tool for translate host domain into IP address.

Usage:

make url="your url"

Example:

make url=google.com
result: 74.125.24.113

Import into your project:

Import:

go get github.com/captain-corgi/translate-host-to-ip

Usage:

import "github.com/captain-corgi/translate-host-to-ip/pkg/iptrans"
....
iptrans.Lookup("url")