Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyBody              = custom.EmptyBody
	MultipartFormEncoded   = custom.MultipartFormEncoded
	ApplicationJSON        = custom.ApplicationJSON
	ApplicationOctetStream = custom.ApplicationOctetStream
	Version                = custom.Version
)
View Source
const (
	EmbedText     = custom.EmbedText
	EmbedIOReader = custom.EmbedIOReader
)

Variables

View Source
var (
	Command            *cli.Command
	CommandErrorBuffer bytes.Buffer
)
View Source
var OutputFormats = custom.OutputFormats

Functions

func NewRequestHeaderFlag added in v1.16.0

func NewRequestHeaderFlag() cli.Flag

func ShowJSON

func ShowJSON(res gjson.Result, opts ShowJSONOpts) error

func ShowJSONIterator

func ShowJSONIterator[T any](iter jsonview.Iterator[T], itemsToDisplay int64, opts ShowJSONOpts) error

func ValidateBaseURL

func ValidateBaseURL(value, source string) error

Types

type BodyContentType

type BodyContentType = custom.BodyContentType

type FileEmbedStyle

type FileEmbedStyle = custom.FileEmbedStyle

Preserve the runtime types exposed by this package before the runtime moved to pkg/custom.

type FilePathValue

type FilePathValue = custom.FilePathValue

type ShowJSONOpts

type ShowJSONOpts = custom.ShowJSONOpts

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL