gls

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type G

type G uintptr

G is a reference to a goroutine, and provides a way to load, store and clear a goroutine local context.

func Context

func Context() G

Context retrieves the goroutine local storage for contexts.

func (G) Clear

func (g G) Clear()

Clear clears the goroutine local context.

func (G) Load

func (g G) Load() any

Load loads the goroutine local context.

func (G) Store

func (g G) Store(c any)

Store stores the goroutine local context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL