contextmain

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CancelContext func()

CancelContext - функция отмены глобального контекста

Ctx хранит глобальный контекст программы не использовать * - чтоб можно было засунуть ссылку на чужой контекст

Functions

func GetContext

func GetContext() context.Context

GetContext - возвращает глобальный контекст приложения

func GetNewContext

func GetNewContext() context.Context

GetNewContext - создаёт и возвращает новый контекст приложения

Types

This section is empty.

Jump to

Keyboard shortcuts

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