interfaces

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 5 Imported by: 0

README

サンプルリスト

このディレクトリには以下のサンプルがあります。

file example name note
interface_basic.go interface_basic Goのインターフェースの基本に関するサンプルです.
interface_composition.go interface_composition Goのインターフェースのコンポジション (合成) についてのサンプルです.
interface_ducktyping.go interface_ducktyping Go で、インターフェースの仕組みを用いたPythonチックなダックタイピングのやり方のサンプルです.
interface_verify_compliance.go interface_verify_compliance インターフェースの実装を検証するやり方のサンプルです.
interface_nil_notnil interface_nil_notnil.go interface{} が nil になったり not-nil になったりする場合のサンプルです

Documentation

Overview

Package interfaces -- Go言語のインターフェースについてのサンプルが配置されているパッケージです。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basic

func Basic() error

Basic は、Goのインターフェースの基本に関するサンプルです. see also: tutorial/tutorial_gotour_19_interface.go

func Composition

func Composition() error

Composition は、 Goのインターフェースのコンポジション (合成) についてのサンプルです.

func DuckTyping

func DuckTyping() error

DuckTyping -- Go で、インターフェースの仕組みを用いたPythonチックなダックタイピングのやり方のサンプルです.

func NewRegister

func NewRegister() mapping.Register

NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。

func NilOrNotNil

func NilOrNotNil() error

NilOrNotNil -- interface{} が nil になったり not-nil になったりする場合のサンプルです

REFERENCES:

func VerifyInterfaceCompliance

func VerifyInterfaceCompliance() error

VerifyInterfaceCompliance は、インターフェースの実装を検証するやり方のサンプルです.

REFERENCES::

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL