Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

aaronland/go-http-cookie

Repository files navigation

go-http-cookie

Go package for working with HTTP cookies.

Deprecation notice

This package has been deprecated and will no longer be updated. It has been replaced by the aaronland/go-http package.

Documentation

Go Reference

Example

Error handling omitted for the sake of brevity.

package main

import (
	"fmt"
	"github.com/aaronland/go-http-cookie"	
)

func main() {

	name := "c"
	secret := "s33kret"
	salt := "s4lty"
	
	cookie_uri := fmt.Sprintf("encrypted://?name=%s&secret=%s&salt=%s", name, secret, salt)
	ck, _ := cookie.NewCookie(ctx, cookie_uri)
}

See also

About

Go package cookie provides interfaces for working with HTTP cookies.

Resources

Stars

Watchers

Forks

Packages

No packages published