ipify

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

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 3 Imported by: 0

README

ipify

Returns public ip provided by ipify api

There's an official lib from ipify you may want to check before: https://github.com/rdegges/go-ipify

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicIP

func PublicIP(timeoutSeconds int) (string, error)

PublicIP retrieves the current public ip from IPIFy https://www.ipify.org/

func PublicIPString

func PublicIPString() string

PublicIPString retrieves the current public ip from IPIFy https://www.ipify.org/ The differences to PublicIP are: - PublicIPString ignores all errors and return an empty string if fails - PublicIPString defines arbitratry timeout value of 5 seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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