util

package
v0.0.0-...-ee607de Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BracketChecker

func BracketChecker() *bracketChecker

func BytesToRune

func BytesToRune(b []byte) rune

returns rune data from byte slice

func GetLength

func GetLength(b []byte) int

returns first non-zero index in byte slice

func IsAscii

func IsAscii(b []byte) bool

returns true if byte slice contains Ascii character

func ToInteger

func ToInteger(s string) int

Types

type StopWatch

type StopWatch struct {
	Laps        []time.Time
	StartTime   time.Time
	StopTime    time.Time
	Duration    int64
	DurationSec float64
}

func NewStopWatch

func NewStopWatch() *StopWatch

func (*StopWatch) Lap

func (s *StopWatch) Lap()

func (*StopWatch) Reset

func (s *StopWatch) Reset()

func (*StopWatch) Start

func (s *StopWatch) Start()

func (*StopWatch) Stop

func (s *StopWatch) Stop() int64

Jump to

Keyboard shortcuts

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