Go package for working with HTTP cookies.
This package has been deprecated and will no longer be updated. It has been replaced by the aaronland/go-http package.
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)
}