util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadString

func ReadString(reader io.Reader) (string, error)

func WriteString

func WriteString(value string, writer io.Writer) error

Types

type MovingAverage

type MovingAverage struct {
	Window int
	// contains filtered or unexported fields
}

func NewMovingAverage

func NewMovingAverage(window int) *MovingAverage

func (*MovingAverage) Add

func (ma *MovingAverage) Add(val float64)

func (*MovingAverage) Avg

func (ma *MovingAverage) Avg() float64

type StringWriter

type StringWriter struct {
	// contains filtered or unexported fields
}

func NewStringWriter

func NewStringWriter() *StringWriter

func (*StringWriter) String

func (w *StringWriter) String() string

func (*StringWriter) Write

func (w *StringWriter) Write(bytes []byte) (int, error)

Jump to

Keyboard shortcuts

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