Ipconv
Golang IP address converter (provides conversion between net.IP and integer).
Install / Use
/learn @praserx/IpconvREADME
ipconv
This library provides simple conversion between net.IP and integer (net.IP <--> int). As new feature, library now contains extension of net.ParseIP which returns also byte length of IP address on input.
I hope it will serve you well.
Example
package main
import (
"fmt"
"net"
"github.com/praserx/ipconv"
)
func main() {
if ip, version, err := ipconv.ParseIP("192.168.1.1"); err != nil && version == 4 {
fmt.Println(ipconv.IPv4ToInt(ip))
}
}
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
345.9kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
