roflcopter

package
v0.0.0-...-00cb72d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Roflcopter

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

func NewRoflcopter

func NewRoflcopter(amount time.Duration, outStr *string, funcrunner func()) *Roflcopter

NewRoflcopter creates a new instance of roflcopter. amount sets duration, outStr is used to output frames, funcrunner will be called after frame change

func (*Roflcopter) OnlySound

func (b *Roflcopter) OnlySound() *sync.WaitGroup

OnlySound only plays sound. Frames are not changing. Returns WaitGroup to know when it has finished work

func (*Roflcopter) Start

func (b *Roflcopter) Start(playSound bool) *sync.WaitGroup

Start starts frame changing. Soundplaying can be set by true or false. Returns WaitGroup to know when it has finished work.

Jump to

Keyboard shortcuts

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