emitter-io / address Goto Github PK
View Code? Open in Web Editor NEWGolang package providing a set of utilities for dealing with network addressing
License: MIT License
Golang package providing a set of utilities for dealing with network addressing
License: MIT License
I believe that this is related to: emitter-io/emitter#369
$ go version
go version go1.16.5 linux/amd64
$ go test ./...
resolving
unable to resolve an empty name or url
resolving https://google.com
resolving google.com
resolving google.com/1234/sds
resolving https://127.0.0.1
resolving https://4987e9gs99sxdg8e8e7tgwe5.boomshouldnotwork
lookup 4987e9gs99sxdg8e8e7tgwe5.boomshouldnotwork: no such host
resolving 127.0.0.1
resolving 2001:db8::68
resolving 192.0.2.1
resolving 127.0.0.1:22
resolving 127.0.0.1:8xx0
parse "tcp://127.0.0.1:8xx0": invalid port ":8xx0" after host
resolving tcp://127.0.0.1:8000
resolving https://gooo:oogle.com
parse "https://gooo:oogle.com": invalid port ":oogle.com" after host
resolving https://google.com:xxx
parse "https://google.com:xxx": invalid port ":xxx" after host
resolving https-----:// ://--
parse "https-----:// ://--": invalid character " " in host name
resolving ::
resolving :::
resolving ::::::::
lookup :::::::: no such host
--- FAIL: TestResolve (0.16s)
dns_test.go:48:
Error Trace: dns_test.go:48
Error: Not equal:
expected: true
actual : false
Test: TestResolve
address 2603:9001:8d01:f500:1198:e1ce:b639:9949:80: too many colons in address
unable to parse an empty address
address 2603:9001:8d01:f500:1198:e1ce:b639:9949:80: too many colons in address
address 2603:9001:8d01:f500:1198:e1ce:b639:9949:1234: too many colons in address
--- FAIL: TestParse (0.15s)
ipaddr_test.go:31:
Error Trace: ipaddr_test.go:31
Error: Not equal:
expected: false
actual : true
Test: TestParse
ipaddr_test.go:31:
Error Trace: ipaddr_test.go:31
Error: Not equal:
expected: false
actual : true
Test: TestParse
ipaddr_test.go:31:
Error Trace: ipaddr_test.go:31
Error: Not equal:
expected: false
actual : true
Test: TestParse
FAIL
FAIL github.com/emitter-io/address 0.314s
FAIL
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.