Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "user", Short: "Search users on Instagram", Example: "goinsta search user rob pike", Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { fmt.Println("Missing arguments. See example") return } inst := utils.New() res, err := inst.Search.User(strings.Join(args, " ")) if err != nil { fmt.Println(err) return } if res.NumResults == 0 { fmt.Println("No results.") return } fmt.Printf("Results: %d\n", res.NumResults) for i := range res.Users { fmt.Printf(" %s\n", res.Users[i].Username) } }, }
RootCmd is used as a command line interaction with Instagram User Search.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.