基本介绍
gctx 组件实现了对上下文操作的封装,用以简化链路跟踪以及进程初始化上下文对象的管理。
常用方法
这里只简单介绍几个常用的方法,其他方法请查看组件API文档或者源码。
New
用以创建一个带有链路跟踪能力的上下文对象。
GetInitCtx
用在启动进程或者init包方法中,用于获取当前进程带有链路跟踪能力的上下文对象,也用于进程间传递链路跟踪信息。
GoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, existing Go files import github.com/gogf/gf/v2 or any github.com/gogf/gf/v2/... component package, or the user asks to scaffold, migrate, or build with GoFrame. Trigger for GoFrame-backed Go work such as APIs/controllers/services, middleware, routing/config, ORM/DAO/DO/entity/database operations, gf CLI/codegen, HTTP/gRPC services, and microservice conventions. Do not trigger for generic Go projects without GoFrame evidence, frontend-only work, shell scripts, or unrelated infrastructure tasks.
Ask your Agent
Use this Skill: https://skilld.dev/gh/gogf/skills/goframe-v2
This session only. Nothing lands on disk.
gctx 组件实现了对上下文操作的封装,用以简化链路跟踪以及进程初始化上下文对象的管理。
这里只简单介绍几个常用的方法,其他方法请查看组件API文档或者源码。
New用以创建一个带有链路跟踪能力的上下文对象。
GetInitCtx用在启动进程或者init包方法中,用于获取当前进程带有链路跟踪能力的上下文对象,也用于进程间传递链路跟踪信息。
Source: SKILL.md on GitHub
The skill provides a comprehensive development guide and code examples for the GoFrame v2 framework. While highly informative for Go developers, it contains several examples with hardcoded placeholder secrets, tokens, and specific local file paths to sensitive configuration files (like Kubernetes credentials). These elements are provided for demonstration purposes but represent insecure practices if used in production without modification.
5 alerts: gptSecurity, gptAnomaly
Risk: LOW · No issues
227/949 files flagged
Score: 93/100 · 2 sections analyzed
Signed by skilld at 911705d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.
Last checked against GitHub 4 months ago.
Provides instruction and conventions for developing with GoFrame v2, a modular Go framework for building HTTP and gRPC services, microservices, and database operations using its ORM, CLI tooling, and project scaffolding. Use this skill when the target project has GoFrame v2 as a dependency or when the user requests scaffolding, migrations, or service development with GoFrame conventions.
Generated from the current SKILL.md.
Generated from the current SKILL.md. These answers refresh after source changes.