counter

package
v0.0.0-...-d153a89 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

*

  • ByteCounter の考え方を利用して、ワードと行に対するカウンタを実装しなさい。
  • bufio.ScanWords が役立つでしょう。 *
  • type ByteCounter int *
  • func (c *ByteCounter) Write(p []byte) (int, error) {
  • *c += ByteCounter(len(p))
  • return len(p), nil
  • }

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineCounter

type LineCounter int

func (*LineCounter) Write

func (c *LineCounter) Write(p []byte) (int, error)

type WordCounter

type WordCounter int

func (*WordCounter) Write

func (c *WordCounter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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