Documentation
¶
Index ¶
- func InitIo(props *InitIoProps) (*In, *Out)
- type In
- func (in *In) NextBytes() []byte
- func (in *In) NextBytesOffset(offset byte) []int
- func (in *In) NextFloat() float64
- func (in *In) NextInt() int
- func (in *In) NextInt2() (int, int)
- func (in *In) NextInt2d(d1, d2 int) (int, int)
- func (in *In) NextInt3() (int, int, int)
- func (in *In) NextInt3d(d1, d2, d3 int) (int, int, int)
- func (in *In) NextInt4() (int, int, int, int)
- func (in *In) NextInts(n int) sort.IntSlice
- func (in *In) NextLongIntAsArray() []int
- type InitIoProps
- type Out
- func (out *Out) PrintIntsLn(a []int)
- func (out *Out) PrintLenAndIntsLn(a []int)
- func (out *Out) PrintStringsln(a []string)
- func (out *Out) Printf(format string, a ...interface{})
- func (out *Out) Println(a ...interface{})
- func (out *Out) Putc(c byte)
- func (out *Out) YESNO(cond bool)
- func (out *Out) YesNo(cond bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type In ¶
type In struct { // NextString は 次の入力を文字列として読み込んで返します。 NextString func() string }
================================================== 入出力操作 ==================================================
func (*In) NextBytesOffset ¶
NextBytesOffsetは、次の入力を文字列として読み込み、各文字cについて(c-offset)に置き換えた配列を返します。
func (*In) NextLongIntAsArray ¶
NextLongIntAsArray は 次の入力を数値として読み込み、各桁を要素とした配列を返します。
type InitIoProps ¶
type Out ¶
type Out struct { Flush func() // contains filtered or unexported fields }
func (*Out) PrintIntsLn ¶
PrintIntsLn は整数配列の各要素をスペース区切りで出力し、最後に改行を出力します。
func (*Out) PrintLenAndIntsLn ¶
func (*Out) PrintStringsln ¶
PrintStringsln は文字列配列の各要素をスペース区切りで出力し、最後に改行を出力します。
Click to show internal directories.
Click to hide internal directories.