//
pkg.gl
Category
golang.org/x/net
xsrftoken
package
0.34.0
Repository:
https://go.googlesource.com/net
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
51
Files
72 SLOC
#
Functions
Generate
Generate returns a URL-safe secure XSRF token that expires in 24 hours.
Valid
Valid reports whether a token is a valid, unexpired token returned by Generate.
ValidFor
ValidFor reports whether a token is a valid, unexpired token returned by Generate.
#
Constants
Timeout
Timeout is the duration for which XSRF tokens are valid.