View on GitHub

sprig

Useful template functions for Go templates.

Network Functions

Sprig network manipulation functions.

getHostByName

The getHostByName receives a domain name and returns the ip address.

getHostByName "www.google.com" would return the corresponding ip address of www.google.com