package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Mar 7, 2025
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
サンプルリスト
このディレクトリには以下のサンプルがあります。
file |
example name |
note |
basic.go |
gocmp_basic |
go-cmp の基本パターンについてのサンプルです |
ignore.go |
gocmp_ignore |
go-cmp にて 指定したフィールド を無視して比較するサンプルです |
Documentation
¶
Package gocmp は、go-cmp 関連のサンプルが配置されています。
Basic -- go-cmp の基本パターンについてのサンプルです.
Ignore -- go-cmp にて 指定したフィールド を無視して比較するサンプルです.
NewRegister -- このパッケージ用のサンプルを登録する mappings.Register を生成します。
type A struct {
PublicField string
}
A -- サンプル用構造体
C -- サンプル用構造体
Equal -- 自身と指定された値が等しいかどうかを返します
等しい場合は true, それ以外は false です.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.