types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Go言語の 型定義 についてのサンプルが配置されているパッケージです。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basic

func Basic() error

Basic は、type についてのサンプルです.

func NewRegister

func NewRegister() mappings.Register

Types

type KeyValuePair

type KeyValuePair struct {
	Key   string
	Value interface{}
}

構造体の定義も struct で定義した内容を type で名前定義しているのと同じ

func NewKeyValuePair

func NewKeyValuePair(k string, v string) *KeyValuePair

*KeyValuePair を生成

type MyInt1

type MyInt1 int

int に対して別名を定義

type MyInt2

type MyInt2 int

type MyIntArray

type MyIntArray [3]int

配列に対して別名を定義

Jump to

Keyboard shortcuts

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