curl

package
v0.0.0-...-9c4ed7d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderFormat      = color.New(color.Bold, color.FgBlue)
	TitleFormat       = color.New(color.Bold, color.Underline, color.FgRed)
	StandardFormat    = color.New(color.FgWhite)
	CommandFormat     = color.New(color.BgBlack, color.FgHiGreen)
	ExplanationFormat = color.New(color.Italic, color.FgWhite)
)

Multiple formats being exported for later reuse

Functions

func Command

func Command(w io.Writer, text string)

Command writes a text using the CommandFormat to the w io.Writer

func Explanation

func Explanation(w io.Writer, text string)

Explanation writes a text using the ExplanationFormat to the w io.Writer

func Header(w io.Writer, text string)

Header writes a text using the HeaderFormat to the w io.Writer

func Standard

func Standard(w io.Writer, text string)

Standard writes a text using the StandardFormat to the w io.Writer

func Title

func Title(w io.Writer, text string)

Title writes a text using the TitleFormat to the w io.Writer

func WriteTutorial

func WriteTutorial(c *gin.Context)

WriteTutorial will write to a gin.Context's writer the full curl tutorial

Types

This section is empty.

Jump to

Keyboard shortcuts

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