web

package
v0.1.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebCmd = &cobra.Command{
	Use:   "http",
	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.`,
}

webCmd represents the http command

Functions

func Get

func Get(opts Request)

func SimpleGetRequest

func SimpleGetRequest(urlString string, token string) []byte

Returns response body

func SimpleGetRequestWithToken

func SimpleGetRequestWithToken(urlString string, token string) []byte

Returns response body

Types

type Request

type Request struct {
	Url     string
	Outfile string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳