Standard library / net

net.IPv6linklocalallnodes

Shared net.IP value representing IPv6 link-local all-nodes multicast. Treat exported slice values as read-only; copy before mutation. Expected stdout: 'ff02::1\n'.

Formal Syntax & Structure

go syntaxgo
var IPv6linklocalallnodes IP

Working Example

Example Snippetgo
package main
import (  "fmt"  "net")
func main() { fmt.Println(net.IPv6linklocalallnodes.String()) }
func must[T any](v T, e error) T {  if e != nil {    panic(e)  }  return v}func check(e error) {  if e != nil {    panic(e)  }}
Go Reference