effectivego18

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntConstZero = iota
	IntConstOne
	IntConstTwo
)

普通の int を使った定数

Variables

This section is empty.

Functions

func Constants

func Constants() error

Constants -- Effective Go - Constants の 内容についてのサンプルです。

Types

type ConstInt

type ConstInt int

ConstInt -- サンプル用定数型

const (
	ConstIntZero ConstInt = iota
	ConstIntOne
	ConstIntTwo
)

ConstInt を使った定数

func (ConstInt) String

func (c ConstInt) String() string

Jump to

Keyboard shortcuts

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