cookieutils

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cookieutils handles setting and getting cookies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r *http.Request, name string) (value string, err error)

Read gets the value from a named cookie.

func Set

func Set(w http.ResponseWriter, cookie http.Cookie) (err error)

Set calls http.SetCookie after appending an HMAC signature to the cookie Value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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