Categorygithub.com/aaronland/go-http-cookie
repositorypackage
1.0.1
Repository: https://github.com/aaronland/go-http-cookie.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

go-http-cookie

Go package for working with HTTP cookies.

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