func decode(value []byte) ([]byte, error) {
	decoded := make([]byte, base64.URLEncoding.DecodedLen(len(value)))
	b, err := base64.URLEncoding.Decode(decoded, value)
	if err != nil {
		return nil, err
	}
	return decoded[:b], nil
}
// decode decodes a cookie using base64.
decode decodes a cookie using base64.
// decode decodes a cookie using base64 .
func decode(value []byte) ([]byte, error) {
	decoded := make([]byte, base64.URLEncoding.DecodedLen(len(value)))
	b, err := base64.URLEncoding.Decode(decoded, value)
	if err != nil {
		return nil, err
	}
	return decoded[:b], nil
}
func decode ( value [ ] byte ) ( [ ] byte , error ) { decoded := make ( [ ] byte , base64 . URLEncoding . DecodedLen ( len ( value ) ) ) b , err := base64 . URLEncoding . Decode ( decoded , value ) if err != nil { return nil , err } return decoded [ : b ] , nil }
decode decodes a cookie using base64.
decode decodes a cookie using base64 .