mapping

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 1 Imported by: 11

Documentation

Overview

Package mappings は、マッピングのためのインターフェースや型が定義されています。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleFunc

type ExampleFunc func() error

ExampleFunc は、実行するサンプル処理を表します

type ExampleKey

type ExampleKey string

ExampleKey は、サンプル名を表すキーを表します

type ExampleMapping

type ExampleMapping map[ExampleKey]ExampleFunc

ExampleMapping は、サンプルのマッピング定義を表します

func NewSampleMapping

func NewSampleMapping() ExampleMapping

NewSampleMapping は、SampleMappingのコンストラクタ関数です

func (ExampleMapping) AllExampleNames

func (m ExampleMapping) AllExampleNames() []string

AllExampleNames は、登録されている全サンプル名を返します

func (ExampleMapping) MakeMapping

func (m ExampleMapping) MakeMapping(registers ...Register)

MakeMapping は、マッピングを生成します

type Register

type Register interface {
	// Regist -- 指定されたマッピングに自身のサンプル情報を登録します.
	Regist(m ExampleMapping)
}

Register は、各パッケージ毎のサンプルを登録するためのインターフェースです.

Jump to

Keyboard shortcuts

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