-
-
Notifications
You must be signed in to change notification settings - Fork 942
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b6fdcd
commit 7c76948
Showing
3 changed files
with
53 additions
and
21 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,26 @@ | ||
//go:build !(go1.20 || go1.21 || go1.22) | ||
|
||
package openwechat | ||
|
||
import "time" | ||
|
||
type entry struct { | ||
Name string | ||
Value string | ||
Quoted bool | ||
Domain string | ||
Path string | ||
SameSite string | ||
Secure bool | ||
HttpOnly bool | ||
Persistent bool | ||
HostOnly bool | ||
Expires time.Time | ||
Creation time.Time | ||
LastAccess time.Time | ||
|
||
// seqNum is a sequence number so that Cookies returns cookies in a | ||
// deterministic order, even for cookies that have equal Path length and | ||
// equal Creation time. This simplifies testing. | ||
seqNum uint64 // nolint:unused | ||
} |
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,27 @@ | ||
//go:build go1.20 || go1.21 || go1.22 | ||
|
||
// 小于go1.20的版本会在编译时报错 | ||
|
||
package openwechat | ||
|
||
import "time" | ||
|
||
type entry struct { | ||
Name string | ||
Value string | ||
Domain string | ||
Path string | ||
SameSite string | ||
Secure bool | ||
HttpOnly bool | ||
Persistent bool | ||
HostOnly bool | ||
Expires time.Time | ||
Creation time.Time | ||
LastAccess time.Time | ||
|
||
// seqNum is a sequence number so that Jar returns cookies in a | ||
// deterministic order, even for cookies that have equal Path length and | ||
// equal Creation time. This simplifies testing. | ||
seqNum uint64 // nolint:unused | ||
} |
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