Skip to content

Commit

Permalink
simplify FileCookie struct
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Jan 27, 2024
1 parent 16f18db commit 3d19ddc
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,9 @@ func MustGenerateRandomHex(length int) string {
}

type FileCookie struct {
Domain string `json:"domain"`
ExpirationDate float64 `json:"expirationDate"`
HostOnly bool `json:"hostOnly"`
HttpOnly bool `json:"httpOnly"`
Name string `json:"name"`
Path string `json:"path"`
SameSite string `json:"sameSite"`
Secure bool `json:"secure"`
Session bool `json:"session"`
StoreId interface{} `json:"storeId"`
Value string `json:"value"`
Name string `json:"name"`
Value string `json:"value"`
Domain string `json:"domain"`
}

func ReadCookiesFile() (map[string]string, error) {
Expand Down

0 comments on commit 3d19ddc

Please # to comment.