본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

gopls-lsp

bowen31337 제작

Coding Agents & IDEs
880clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Go language server (gopls) providing code intelligence, refactoring, and analysis for .go files.

설명

이 스킬이 하는 일

gopls is the official Go language server, providing code intelligence for .go files via the LSP protocol. It handles autocomplete, go-to-definition, find references, real-time error diagnostics, and refactoring like symbol renaming and import organization.

As the official Go language server maintained by the Go team, it stays current with new language features and provides more accurate analysis than third-party alternatives.

사용 시점

  • Navigating to a function definition in a large Go codebase
  • Renaming a struct field across all files in a module
  • Catching type errors before running go build
  • Automatically organizing imports while editing a file
  • Finding all callers of an interface method

예시 워크플로

입력

User asks: rename the UserID field in the User struct to ID across the entire project

에이전트
  1. 1

    gopls locates all references to UserID across .go files in the module

  2. 2

    Checks for naming conflicts the rename would introduce

  3. 3

    Applies the rename atomically across all affected files

  4. 4

    Reports the count of files and occurrences updated

출력

All references to UserID replaced with ID across the project, no conflicts introduced

요구 사항

  • gopls installed via `go install golang.org/x/tools/gopls@latest` with $GOPATH/bin (or $HOME/go/bin) added to PATH

설치

clawhub install bowen31337/gopls-lsp

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크