...

Package xcontext

import "golang.org/x/tools/internal/xcontext"
Overview
Index

Overview ▾

Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package.

func Detach

func Detach(ctx context.Context) context.Context

Detach returns a context that keeps all the values of its parent context but detaches from the cancellation and error handling.