util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NumberOfDigits

func NumberOfDigits(num int) int

NumberOfDigits returns the number of digits in the given integer. For example num=6 will return 1, num=11 will return 2, etc.

func Unzip

func Unzip(src string) error

Extract the zip archive specified by src. This is used to extract the tor binary on windows.

Types

type NilStreamSeekCloser

type NilStreamSeekCloser struct{}

NilStreamSeekCloser is used to initialize the 'audioStream' field of 'model'. We use this so that Close() can be safely called on audioStream.

func (NilStreamSeekCloser) Close

func (s NilStreamSeekCloser) Close() error

func (NilStreamSeekCloser) Err

func (s NilStreamSeekCloser) Err() error

func (NilStreamSeekCloser) Len

func (s NilStreamSeekCloser) Len() int

func (NilStreamSeekCloser) Position

func (s NilStreamSeekCloser) Position() int

func (NilStreamSeekCloser) Seek

func (s NilStreamSeekCloser) Seek(p int) error

func (NilStreamSeekCloser) Stream

func (s NilStreamSeekCloser) Stream(samples [][2]float64) (n int, ok bool)

Jump to

Keyboard shortcuts

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