param

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(pp ...Param) string

Format formats the parameters to be included in the header

Types

type Param

type Param struct {
	Key   string
	Value string
	Quote bool
}

Param is a key/value header parameter

func Parse

func Parse(s string) ([]Param, error)

Parse parses the header parameters

func (Param) String

func (p Param) String() string

String returns the formatted parameter

Jump to

Keyboard shortcuts

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