소스 정보
- 저장소
- pluginagentmarketplace/custom-plugin-go
- 최근 소스 활동
- 2025년 12월 30일 12:44
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-go --skill go-modules명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | go-modules |
| description | Go modules and dependency management |
| sasmp_version | 1.3.0 |
| bonded_agent | 01-go-fundamentals |
| bond_type | SECONDARY_BOND |
Master Go module system and dependency management.
Complete guide for Go modules including versioning, private modules, vendoring, and dependency updates.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| action | string | yes | - | Action: "init", "tidy", "vendor", "update" |
| private | bool | no | false | Handle private modules |
# Initialize new module
go mod init github.com/myorg/myapp
# Download dependencies
go mod download
# Cleanup unused dependencies
go mod tidy
# Verify dependencies
go mod verify
module github.com/myorg/myapp
go 1.22
require (
github.com/gin-gonic/gin v1.9.1
github.com/jmoiron/sqlx v1.3.5
go.uber.org/zap v1.26.0
)
require (
// indirect dependencies auto-managed
github.com/lib/pq v1.10.9 // indirect
)
# Configure private module pattern
go env -w GOPRIVATE=github.com/myorg/*
# Use SSH for private repos
git config --global url."git@github.com:".insteadOf "https://github.com/"
# Or use access token
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
# Create vendor directory
go mod vendor
# Build with vendor
go build -mod=vendor ./...
# Verify vendor is in sync
go mod verify
# List available updates
go list -m -u all
# Update specific dependency
go get github.com/gin-gonic/gin@latest
# Update all dependencies
go get -u ./...
# Update to specific version
go get github.com/gin-gonic/gin@v1.9.1
# Downgrade
go get github.com/gin-gonic/gin@v1.8.0
// go.mod
// Local development
replace github.com/myorg/shared => ../shared
// Fork with fixes
replace github.com/original/pkg => github.com/myorg/pkg-fork v1.2.3
// Exclude vulnerable version
exclude github.com/vulnerable/pkg v1.0.0
// go.work
go 1.22
use (
./api
./shared
./worker
)
# Initialize workspace
go work init ./api ./shared
# Add module to workspace
go work use ./worker
# Sync workspace
go work sync
| Symptom | Cause | Fix |
|---|---|---|
| Module not found | Private repo | Set GOPRIVATE |
| Checksum mismatch | Proxy cache | GOPROXY=direct |
| Version conflict | Diamond dependency | Use go mod graph |
go mod graph # Show dependency graph
go mod why github.com/pkg/errors # Why is this needed?
go list -m -versions github.com/gin-gonic/gin # Available versions
Skill("go-modules")