Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ipd 1.2.3.4", Short: "ipd", Long: `ipd`, Args: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { return errors.New("Requires IP address") } return nil }, Run: func(cmd *cobra.Command, args []string) { ipAddr := args[0] l, err := cfg.Db.Find(ipAddr) if err != nil { fmt.Printf("IP find error: %s\n", err) return } fmt.Printf("%#v", l) }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.