pub fn formatResolved(a: IpAddress, io: Io, w: *Io.Writer) Ip6Address.FormatError!void 172
173
174
175
176
177 pub fn formatResolved(a: IpAddress, io: Io, w: *Io.Writer) Ip6Address.FormatError!void {
switch (a) {
.ip4 => |x| return x.format(w),
.ip6 => |x| return x.formatResolved(io, w),
}
}
Includes the optional scope ("%foo" at the end) in IPv6 addresses.
See
formatfor an alternative that omits scopes and does not require anIoparameter.