Skip to content

Commit

Permalink
update the comment of GetValueAndStamp
Browse files Browse the repository at this point in the history
  • Loading branch information
chmike committed Sep 2, 2021
1 parent 6c7287a commit 842413f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions securecookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ func (o *Obj) decodeValue(dst []byte, val string) ([]byte, error) {

// GetValueAndStamp appends the decoded securecookie value to dst.
// dst is allocated if nil, or grown if too small.
// Returns the value and the time stamp truncated to seconds when the
// cookie was generated and added to an http response with SetValue.
func (o *Obj) GetValueAndStamp(dst []byte, r *http.Request) ([]byte, time.Time, error) {
c, err := r.Cookie(o.name)
if err != nil {
Expand Down

0 comments on commit 842413f

Please sign in to comment.