·go-interfaces
</>

go-interfaces

cxuu/golang-skills

Go インターフェイス、型アサーション、型スイッチ、Effective Go からの埋め込み。暗黙的なインターフェイスの満足度、カンマ OK のイディオム、インターフェイスの戻りによる一般性、合成のためのインターフェイスと構造体の埋め込みについて説明します。インターフェイスの定義または実装、型アサーション/スイッチの使用、または埋め込みによる型の作成時に使用します。

25インストール·3トレンド·@cxuu

インストール

$npx skills add https://github.com/cxuu/golang-skills --skill go-interfaces

SKILL.md

Go's interfaces enable flexible, decoupled designs through implicit satisfaction and composition. This skill covers interface fundamentals, type inspection, and Go's approach to composition over inheritance.

Interfaces in Go specify behavior: if something can do this, it can be used here. Types implement interfaces implicitly—no implements keyword needed.

By convention, one-method interfaces use the method name plus -er suffix: Reader, Writer, Formatter, Stringer.

Go インターフェイス、型アサーション、型スイッチ、Effective Go からの埋め込み。暗黙的なインターフェイスの満足度、カンマ OK のイディオム、インターフェイスの戻りによる一般性、合成のためのインターフェイスと構造体の埋め込みについて説明します。インターフェイスの定義または実装、型アサーション/スイッチの使用、または埋め込みによる型の作成時に使用します。 ソース: cxuu/golang-skills。

原文を見る

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/cxuu/golang-skills --skill go-interfaces
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-01
更新日
2026-02-18

クイックアンサー

go-interfaces とは?

Go インターフェイス、型アサーション、型スイッチ、Effective Go からの埋め込み。暗黙的なインターフェイスの満足度、カンマ OK のイディオム、インターフェイスの戻りによる一般性、合成のためのインターフェイスと構造体の埋め込みについて説明します。インターフェイスの定義または実装、型アサーション/スイッチの使用、または埋め込みによる型の作成時に使用します。 ソース: cxuu/golang-skills。

go-interfaces のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/cxuu/golang-skills --skill go-interfaces インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/cxuu/golang-skills