pkgsitegolang.org/x/pkgsite/internal/xcontext Index | Files

package xcontext

import "golang.org/x/pkgsite/internal/xcontext"

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

Index

Functions

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.

Source Files

xcontext.go

Version
v0.0.0-20250523174444-0e6de173c6b5 (latest)
Published
May 23, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 month ago

Tools for package owners.