Standard library / net
net.IP.IsLinkLocalMulticast()
Test link-local multicast; classification does not establish trust or reachability. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (ip IP) IsLinkLocalMulticast() boolReturn Value
bool
Operation result; check errors and validity indicators when returned.
Working Example
Example Snippetgo
package main
import ( "fmt" "net")
func main() { fmt.Println(net.ParseIP("224.0.0.1").IsLinkLocalMulticast()) }
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) }}