fastio

package module
Version: v0.0.0-...-391df80 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2014 License: BSD-2-Clause Imports: 4 Imported by: 0

README

fastio

This library use for programming contest.

Installation

go get github.com/nise-nabe/fastio

Usage Exapmle

s := fastio.NewInOut(os.Stdin, os.Stdout)
n := s.Next()
s.Println("Hello, World! ", n)
s.Flush()

License

The BSD 2-Clause License

Thanks

bobjones55

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InOut

type InOut struct {
	*bufio.Reader
	*bufio.Writer
}

func NewInOut

func NewInOut(r io.Reader, w io.Writer) *InOut

func (*InOut) Next

func (s *InOut) Next() (r int)

Get Next Integer

func (*InOut) NextBytes

func (s *InOut) NextBytes() (r []byte)

Get Next String using delimiter whitespace

func (*InOut) NextFloat

func (s *InOut) NextFloat() (r float64)

Get Next float64

func (*InOut) NextInt64

func (s *InOut) NextInt64() (r int64)

Get Next int64

func (*InOut) NextLine

func (s *InOut) NextLine() (r string)

Get Next Line String

func (*InOut) NextStr

func (s *InOut) NextStr() (r string)

Get Next String using delimiter whitespace

func (*InOut) Print

func (s *InOut) Print(os ...interface{})

Print Strings using the suitable way to change type

func (*InOut) Println

func (s *InOut) Println(os ...interface{})

Print Strings using the suitable way to change type with new line

func (*InOut) PrintlnNow

func (s *InOut) PrintlnNow(o interface{})

Print immediately with new line (for debug)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL