func context.Background
75 uses
context (current package)
context.go#L208: func Background() Context {
crypto/tls
conn.go#L1201: if c.handshakeErr = c.clientHandshake(context.Background()); c.handshakeErr == nil {
conn.go#L1386: return c.HandshakeContext(context.Background())
tls.go#L117: return dial(context.Background(), dialer, network, addr, config)
tls.go#L197: return d.DialContext(context.Background(), network, addr)
database/sql
sql.go#L785: ctx, cancel := context.WithCancel(context.Background())
sql.go#L875: return db.PingContext(context.Background())
sql.go#L1578: return db.PrepareContext(context.Background(), query)
sql.go#L1653: return db.ExecContext(context.Background(), query, args...)
sql.go#L1728: return db.QueryContext(context.Background(), query, args...)
sql.go#L1829: return db.QueryRowContext(context.Background(), query, args...)
sql.go#L1865: return db.BeginTx(context.Background(), nil)
sql.go#L2375: return tx.PrepareContext(context.Background(), query)
sql.go#L2481: return tx.StmtContext(context.Background(), stmt)
sql.go#L2500: return tx.ExecContext(context.Background(), query, args...)
sql.go#L2518: return tx.QueryContext(context.Background(), query, args...)
sql.go#L2542: return tx.QueryRowContext(context.Background(), query, args...)
sql.go#L2651: return s.ExecContext(context.Background(), args...)
sql.go#L2825: return s.QueryContext(context.Background(), args...)
sql.go#L2867: return s.QueryRowContext(context.Background(), args...)
github.com/aws/aws-sdk-go-v2/service/s3
api_client.go#L441: value, found, err := s3sharedconfig.ResolveUseARNRegion(context.Background(), cfg.ConfigSources)
api_client.go#L456: value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources)
api_client.go#L471: value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources)
github.com/aws/smithy-go/context
suppress_expired.go#L54: Context: context.Background(),
github.com/go-pg/pg/v10
db.go#L19: context.Background(),
db.go#L125: return context.Background()
stmt.go#L123: return stmt.execOne(context.Background(), params...)
stmt.go#L145: return stmt.query(context.Background(), model, params...)
stmt.go#L188: return stmt.queryOne(context.Background(), model, params...)
github.com/go-pg/pg/v10/orm
query.go#L87: ctx := context.Background()
github.com/robfig/cron/v3
cron.go#L330: ctx, cancel := context.WithCancel(context.Background())
golang.org/x/net/http2
server.go#L365: return context.Background()
transport.go#L825: ctx, cancel := context.WithTimeout(context.Background(), pingTimeout)
golang.org/x/tools/go/packages
golist.go#L137: parentCtx = context.Background()
packages.go#L600: ld.Context = context.Background()
google.golang.org/grpc
clientconn.go#L105: return DialContext(context.Background(), target, opts...)
clientconn.go#L147: cc.ctx, cc.cancel = context.WithCancel(context.Background())
google.golang.org/grpc/internal/channelz
funcs.go#L117: ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L132: ctx, cancel := context.WithCancel(context.Background())
google.golang.org/grpc/internal/transport
http2_server.go#L248: ctx: setConnection(context.Background(), rawConn),
net
dial.go#L351: return d.DialContext(context.Background(), network, address)
dial.go#L712: return lc.Listen(context.Background(), network, address)
dial.go#L742: return lc.ListenPacket(context.Background(), network, address)
iprawsock.go#L81: afnet, _, err := parseNetwork(context.Background(), network, false)
iprawsock.go#L90: addrs, err := DefaultResolver.internetAddrList(context.Background(), afnet, address)
iprawsock.go#L216: c, err := sd.dialIP(context.Background(), laddr, raddr)
iprawsock.go#L235: c, err := sl.listenIP(context.Background(), laddr)
lookup.go#L174: return DefaultResolver.LookupHost(context.Background(), host)
lookup.go#L194: addrs, err := DefaultResolver.LookupIPAddr(context.Background(), host)
lookup.go#L282: return &onlyValuesCtx{Context: context.Background(), lookupValues: lookupCtx}
lookup.go#L407: return DefaultResolver.LookupPort(context.Background(), network, service)
lookup.go#L449: return DefaultResolver.LookupCNAME(context.Background(), host)
lookup.go#L491: return DefaultResolver.LookupSRV(context.Background(), service, proto, name)
lookup.go#L542: return DefaultResolver.LookupMX(context.Background(), name)
lookup.go#L582: return DefaultResolver.LookupNS(context.Background(), name)
lookup.go#L617: return DefaultResolver.lookupTXT(context.Background(), name)
lookup.go#L638: return DefaultResolver.LookupAddr(context.Background(), addr)
tcpsock.go#L92: addrs, err := DefaultResolver.internetAddrList(context.Background(), network, address)
tcpsock.go#L243: c, err := sd.dialTCP(context.Background(), laddr, raddr)
tcpsock.go#L361: ln, err := sl.listenTCP(context.Background(), laddr)
udpsock.go#L95: addrs, err := DefaultResolver.internetAddrList(context.Background(), network, address)
udpsock.go#L296: c, err := sd.dialUDP(context.Background(), laddr, raddr)
udpsock.go#L322: c, err := sl.listenUDP(context.Background(), laddr)
udpsock.go#L359: c, err := sl.listenMulticastUDP(context.Background(), ifi, gaddr)
unixsock.go#L210: c, err := sd.dialUnix(context.Background(), laddr, raddr)
unixsock.go#L327: ln, err := sl.listenUnix(context.Background(), laddr)
unixsock.go#L347: c, err := sl.listenUnixgram(context.Background(), laddr)
net/http
h2_bundle.go#L4038: return context.Background()
h2_bundle.go#L7447: ctx, cancel := context.WithTimeout(context.Background(), pingTimeout)
request.go#L341: return context.Background()
request.go#L831: return NewRequestWithContext(context.Background(), method, url, body)
server.go#L3027: baseCtx := context.Background()
socks_bundle.go#L36: if ctx != context.Background() {
socks_bundle.go#L374: c, err = d.ProxyDial(context.Background(), d.proxyNetwork, d.proxyAddress)
socks_bundle.go#L382: if _, err := d.DialWithConn(context.Background(), c, network, address); err != nil {