SkillAgentSearch skills...

Ipconv

Golang IP address converter (provides conversion between net.IP and integer).

Install / Use

/learn @praserx/Ipconv
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2mo ago
Forks0

Languages

Go

Security Score

90/100

Audited on Jan 24, 2026

No findings