-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cookie.Manager and DefaultManager (#8)
* `cookie.Manager` is now the primary API to the package * `cookie.DefaultManager` is initialized and provides API stability for the global `Set/Get/...` methods. * `Options` API Change: * `cookie.NewManager(cookie.WithSigningKey(signingKey))` * Introduction of `CustomTypeHandler` so we no longer impose a specific dependency (gofrs/uuid) * Significant upgrade to the `PopulateFromCookies` functionality * File organization for better separation of functionality and tests * Removal of `DefaultOptions` - The `mergeOptions` functionality wasn't working well anyways. * Adds `omitempty` to silently ignore missing cookies.
- Loading branch information
Showing
18 changed files
with
1,181 additions
and
810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Contributing | ||
|
||
Before making any changes to this project, please initiate discussions for the | ||
proposed changes that do not yet have an issue associated with them. Your | ||
collaboration is greatly appreciated! | ||
|
||
## Labels | ||
|
||
Please make use of the available labels when creating issues or pull requests: | ||
|
||
- `enhancement`: New feature or request | ||
- `bug`: Something isn't working | ||
- `documentation`: Improvements or additions to documentation | ||
- `help wanted`: Extra attention is needed | ||
- `question`: Further information is requested | ||
|
||
As we work through issues or pull requests, they may be additionally labeled | ||
with: | ||
|
||
- `duplicate`: This issue or pull request already exists | ||
- `good first issue`: Great for newcomers | ||
- `invalid`: This doesn't seem right | ||
- `wontfix`: This will not be worked on | ||
|
||
## Pull Requests | ||
|
||
Pull requests should be made against the `main` branch. All pull requests that | ||
contain a feature or fix are mandatory to have unit tests. Your PR is only to be | ||
merged if you adhere to this flow. | ||
|
||
## Security Vulnerabilities | ||
|
||
If you discovery a security vulnerability within this project, please send an | ||
email to `[email protected]`. All security vulnerabilities will be promptly | ||
addressed. | ||
|
||
## Contribute | ||
|
||
If you want to say thank you and/or support the active development of the | ||
project: | ||
|
||
- Add a [GitHub Star](https://github.com/syntaqx/cookie/stargazers) to the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cover: | ||
go test -coverprofile=coverage.out ./... | ||
go tool cover -html=coverage.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.