utils

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomHttpTestFile

func CreateRandomHttpTestFile(lineCount int) *os.File

func CreateTestFile

func CreateTestFile(lines []string) *os.File

func MapStrings

func MapStrings(array []string, delegate func(value string) string) (values []string)

Types

type DefaultTimer added in v0.10.0

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

func NewDefaultTimer added in v0.10.0

func NewDefaultTimer() *DefaultTimer

func (*DefaultTimer) Start added in v0.10.0

func (timer *DefaultTimer) Start()

func (*DefaultTimer) Stop added in v0.10.0

func (timer *DefaultTimer) Stop() time.Duration

type FakeTimer added in v0.10.0

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

func NewFakeTimer added in v0.10.0

func NewFakeTimer(duration time.Duration) *FakeTimer

func (*FakeTimer) SetElapsed added in v0.10.0

func (timer *FakeTimer) SetElapsed(duration time.Duration)

func (*FakeTimer) Start added in v0.10.0

func (timer *FakeTimer) Start()

func (*FakeTimer) Stop added in v0.10.0

func (timer *FakeTimer) Stop() time.Duration

type Timer added in v0.10.0

type Timer interface {
	Start()
	Stop() time.Duration
}

Jump to

Keyboard shortcuts

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