func context.Background
57 uses
context (current package)
context.go#L215: func Background() Context {
crypto/tls
conn.go#L1291: if c.handshakeErr = c.clientHandshake(context.Background()); c.handshakeErr == nil {
conn.go#L1492: return c.HandshakeContext(context.Background())
tls.go#L119: return dial(context.Background(), dialer, network, addr, config)
tls.go#L199: return d.DialContext(context.Background(), network, addr)
github.com/robfig/cron/v3
cron.go#L330: ctx, cancel := context.WithCancel(context.Background())
golang.org/x/net/http2
server.go#L389: return context.Background()
transport.go#L920: ctx, cancel := cc.t.contextWithTimeout(context.Background(), pingTimeout)
golang.org/x/tools/go/packages
golist.go#L143: parentCtx = context.Background()
packages.go#L740: 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#L504: return d.DialContext(context.Background(), network, address)
dial.go#L898: return lc.Listen(context.Background(), network, address)
dial.go#L928: 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#L187: return DefaultResolver.LookupHost(context.Background(), host)
lookup.go#L206: addrs, err := DefaultResolver.LookupIPAddr(context.Background(), host)
lookup.go#L299: return &onlyValuesCtx{Context: context.Background(), lookupValues: lookupCtx}
lookup.go#L408: return DefaultResolver.LookupPort(context.Background(), network, service)
lookup.go#L452: return DefaultResolver.LookupCNAME(context.Background(), host)
lookup.go#L494: return DefaultResolver.LookupSRV(context.Background(), service, proto, name)
lookup.go#L545: return DefaultResolver.LookupMX(context.Background(), name)
lookup.go#L585: return DefaultResolver.LookupNS(context.Background(), name)
lookup.go#L623: return DefaultResolver.lookupTXT(context.Background(), name)
lookup.go#L647: return DefaultResolver.LookupAddr(context.Background(), addr)
tcpsock.go#L92: addrs, err := DefaultResolver.internetAddrList(context.Background(), network, address)
tcpsock.go#L332: c, err = sd.dialMPTCP(context.Background(), laddr, raddr)
tcpsock.go#L334: c, err = sd.dialTCP(context.Background(), laddr, raddr)
tcpsock.go#L455: ln, err = sl.listenMPTCP(context.Background(), laddr)
tcpsock.go#L457: ln, err = sl.listenTCP(context.Background(), laddr)
udpsock.go#L95: addrs, err := DefaultResolver.internetAddrList(context.Background(), network, address)
udpsock.go#L300: c, err := sd.dialUDP(context.Background(), laddr, raddr)
udpsock.go#L326: c, err := sl.listenUDP(context.Background(), laddr)
udpsock.go#L363: c, err := sl.listenMulticastUDP(context.Background(), ifi, gaddr)
unixsock.go#L210: c, err := sd.dialUnix(context.Background(), laddr, raddr)
unixsock.go#L324: ln, err := sl.listenUnix(context.Background(), laddr)
unixsock.go#L344: c, err := sl.listenUnixgram(context.Background(), laddr)
net/http
h2_bundle.go#L4436: return context.Background()
h2_bundle.go#L8342: ctx, cancel := cc.t.contextWithTimeout(context.Background(), pingTimeout)
request.go#L356: return context.Background()
request.go#L863: return NewRequestWithContext(context.Background(), method, url, body)
server.go#L3412: 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 {
testing
benchmark.go#L200: ctx, cancelCtx := context.WithCancel(context.Background())
fuzz.go#L516: ctx, cancelCtx := context.WithCancel(context.Background())
fuzz.go#L601: ctx, cancelCtx := context.WithCancel(context.Background())
testing.go#L1824: ctx, cancelCtx := context.WithCancel(context.Background())
testing.go#L2261: ctx, cancelCtx := context.WithCancel(context.Background())