beeper

package module
v1.0.1-0...-e39d7b9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2015 License: MIT Imports: 2 Imported by: 0

README

go-beeper Build Status

Make your terminal beep

View the docs.

Installation

$ go get github.com/frozzare/go-beeper

Example

package main

import (
	"github.com/frozzare/go-beeper"
)

func main() {
	// beep once
	beeper.Beep()

	// beep three times
	beeper.Beep(3)
}

Play a melody. Star is a beep and dash is the pause sign.

package main

import (
	"github.com/frozzare/go-beeper"
)

func main() {
	beeper.Melody("**-**")
	// beep, beep, pause, beep, beep
}

License

MIT © Fredrik Forsmo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Beep

func Beep(params ...int) bool

Beep numbers of times.

func Melody

func Melody(params ...string) bool

Beep a melody.

Types

This section is empty.

Jump to

Keyboard shortcuts

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