gookie

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gookie

type Gookie struct {
	Name       string
	Domain     string //localhost:8080 ,web.com
	Https      bool
	Expiration time.Duration //ej: 1*time.Minute
}

func (Gookie) Get

func (g Gookie) Get(r *http.Request) (c *http.Cookie, err string)

func (Gookie) Set

func (c Gookie) Set(value string, w http.ResponseWriter)

domain ej: "example.com"

Jump to

Keyboard shortcuts

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