github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/network/iptables/parse.go (about) 1 // Copyright 2017 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 //go:build ignore 5 6 package main 7 8 import ( 9 "log" 10 "os" 11 12 "github.com/kr/pretty" 13 14 "github.com/juju/juju/network/iptables" 15 ) 16 17 func main() { 18 rules, err := iptables.ParseIngressRules(os.Stdin) 19 if err != nil { 20 log.Fatal(err) 21 } 22 pretty.Println(rules) 23 }