github.com/hairyhenderson/gomplate/v4@v4.0.0-pre-2.0.20240520121557-362f058f0c93/internal/tests/integration/sockaddr_test.go (about) 1 package integration 2 3 import ( 4 "testing" 5 ) 6 7 func TestSockaddr(t *testing.T) { 8 inOutContains(t, `{{ range (sockaddr.GetAllInterfaces | sockaddr.Include "type" "ipv4") -}} 9 {{ . | sockaddr.Attr "address" }} 10 {{end}}`, "127.0.0.1") 11 }