Documentation
¶
Overview ¶
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DELETECmd = &cobra.Command{ Use: "DELETE", Short: "A brief description of your command", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("DELETE called") methods.Delete(url) }, }
DELETECmd represents the DELETE command
View Source
var GETCmd = &cobra.Command{ Use: "GET", Short: "A brief description of your command", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("GET called") methods.Get(url) }, }
GETCmd represents the GET command
View Source
var PATCHCmd = &cobra.Command{ Use: "PATCH", Short: "A brief description of your command", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("PATCH called") json.NewEncoder(os.Stdout).Encode(url) methods.Patch(url, body) }, }
PATCHCmd represents the PATCH command
View Source
var POSTCmd = &cobra.Command{ Use: "POST", Short: "A brief description of your command", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("POST called") json.NewEncoder(os.Stdout).Encode(url) methods.Post(url, body) }, }
POSTCmd represents the POST command
View Source
var PUTCmd = &cobra.Command{ Use: "PUT", Short: "A brief description of your command", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("PUT called") json.NewEncoder(os.Stdout).Encode(body) methods.Put(url, body) }, }
PUTCmd represents the PUT command
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.