Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

magic.gitlab.yandexcloud.net/myfantasy/libs/mctx

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic.gitlab.yandexcloud.net/myfantasy/libs/mctx

Go Modules
Version
v0.0.7
Version published
Created
Source

mctx

примеры использования

package некий_Пакет

func Какая_То_Функция(cxtIn context.Context, какие-то аргументы) (какой-то вывод, err error) {
    ctx := mctx.FromCtx(cxtIn).StartSegment("usecase", "некий_Пакет.Какая_То_Функция")
	defer func() { ctx.Complete(err) }()
}

func (p *Какой_То_Тип) Какая_То_Функция(cxtIn context.Context, какие-то аргументы) (какой-то вывод, err error) {
    ctx := mctx.FromCtx(cxtIn).StartSegment("usecase", "некий_Пакет.Какой_То_Тип.Какая_То_Функция")
	defer func() { ctx.Complete(err) }()

    
}

FAQs

Package last updated on 07 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts