Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "print ipfool version", Run: func(cmd *cobra.Command, args []string) { info, ok := debug.ReadBuildInfo() if !ok { panic("could not read build info") } iplibVersion := "unknown" for _, mod := range info.Deps { if mod.Path == "github.com/c-robinson/iplib/v2" { iplibVersion = mod.Version } } fmt.Printf("ipfool %s, using iplib %s\n", info.Main.Version, iplibVersion) if versionExtendedFlag { viewExtendedVersion(info) } }, }
Functions ¶
func Execute ¶
func Execute()
Execute runs rootCmd and needs normal printer in case onIntialize fails and no printer is available
func ViewIPAddress ¶
Types ¶
Source Files
¶
- hostmask.go
- iana.go
- iana_ip.go
- iana_rfc.go
- iana_view.go
- net.go
- net_between.go
- net_contains.go
- net_decrement.go
- net_enumerate.go
- net_increment.go
- net_nextnet.go
- net_prevnet.go
- net_random.go
- net_subnet.go
- net_supernet.go
- net_view.go
- root.go
- v4.go
- v4_compare.go
- v4_decrement.go
- v4_delta.go
- v4_from.go
- v4_from_arpa.go
- v4_from_hex.go
- v4_from_int.go
- v4_increment.go
- v4_to.go
- v4_to_arpa.go
- v4_to_binary.go
- v4_to_hex.go
- v4_to_int.go
- v4_to_v6.go
- v6.go
- v6_compare.go
- v6_decrement.go
- v6_delta.go
- v6_expand.go
- v6_from.go
- v6_from_arpa.go
- v6_from_int.go
- v6_iid.go
- v6_increment.go
- v6_to.go
- v6_to_arpa.go
- v6_to_binary.go
- v6_to_int.go
- validations.go
- version.go
Click to show internal directories.
Click to hide internal directories.