time.Time.Before (method)
17 uses
time (current package)
time.go#L270: func (t Time) Before(u Time) bool {
time.go#L923: case t.Before(u):
context
context.go#L622: if cur, ok := parent.Deadline(); ok && cur.Before(d) {
crypto/x509
verify.go#L582: if now.Before(c.NotBefore) {
x509.go#L2320: if template.NextUpdate.Before(template.ThisUpdate) {
crypto/x509/pkix
pkix.go#L296: return !now.Before(certList.TBSCertList.NextUpdate)
github.com/golang-jwt/jwt/v5
validator.go#L177: return errorIfFalse(cmp.Before((exp.Time).Add(+v.leeway)), ErrTokenExpired)
validator.go#L198: return errorIfFalse(!cmp.Before(iat.Add(-v.leeway)), ErrTokenUsedBeforeIssued)
validator.go#L219: return errorIfFalse(!cmp.Before(nbf.Add(-v.leeway)), ErrTokenNotValidYet)
net
dial.go#L187: if b.IsZero() || a.Before(b) {
dial.go#L481: if d, ok := ctx.Deadline(); !ok || deadline.Before(d) {
dial.go#L628: if partialDeadline.Before(deadline) {
hosts.go#L56: if now.Before(hosts.expire) && hosts.path == hp && len(hosts.byName) > 0 {
net/http
client.go#L312: return t.Before(d)
h2_bundle.go#L6643: if !deadline.IsZero() && deadline.Before(w.rws.conn.srv.now()) {
h2_bundle.go#L6669: if !deadline.IsZero() && deadline.Before(w.rws.conn.srv.now()) {
transport.go#L1131: tooOld := !oldTime.IsZero() && pconn.idleAt.Round(0).Before(oldTime)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |