cookie

package
v0.0.0-...-e4b31ca Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCookieNotFound if cookie not found
	ErrCookieNotFound = errors.New("cookie not found")
	// ErrInvalidCookie if cookie is invalid
	ErrInvalidCookie = errors.New("invalid cookie")
)

Functions

func Get

func Get(key string) (string, error)

Get get cookie by cookie name

func Set

func Set(key, value string)

Set set cookie by key and value

Types

This section is empty.

Jump to

Keyboard shortcuts

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