go-functional-options
✓Go 생성자 및 공개 API의 기능적 옵션 패턴입니다. 선택적 구성, 특히 3개 이상의 매개변수를 사용하여 API를 설계할 때 사용합니다.
SKILL.md
Functional options is a pattern where you declare an opaque Option type that records information in an internal struct. The constructor accepts a variadic number of these options and applies them to configure the result.
The unexported apply method ensures only options from this package can be used.
| Extensibility | Add new With functions | Add new fields (may break) | | Defaults | Built into constructor | Zero values or separate defaults | | Caller experience | Only specify what differs | Must construct entire struct | | Testability | Options are comparable | Struct comparison | | Complexity | More boilerplate | Simpler setup |
Go 생성자 및 공개 API의 기능적 옵션 패턴입니다. 선택적 구성, 특히 3개 이상의 매개변수를 사용하여 API를 설계할 때 사용합니다. 출처: cxuu/golang-skills.
인용 가능한 정보
AI/검색 인용용 안정적인 필드와 명령어.
- 설치 명령어
npx skills add https://github.com/cxuu/golang-skills --skill go-functional-options- 카테고리
- </>개발 도구
- 인증됨
- ✓
- 최초 등록
- 2026-02-01
- 업데이트
- 2026-02-18
빠른 답변
go-functional-options이란?
Go 생성자 및 공개 API의 기능적 옵션 패턴입니다. 선택적 구성, 특히 3개 이상의 매개변수를 사용하여 API를 설계할 때 사용합니다. 출처: cxuu/golang-skills.
go-functional-options 설치 방법은?
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/cxuu/golang-skills --skill go-functional-options 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다
소스 저장소는 어디인가요?
https://github.com/cxuu/golang-skills
상세
- 카테고리
- </>개발 도구
- 출처
- skills.sh
- 최초 등록
- 2026-02-01