Skip to content

Repository files navigation

morse

Go Report CardCircleCIcodecovGo ReferenceLicense

Morse Code Library in Go

Download and Use

go get -u -v github.com/alwindoss/morse

or

dep ensure -add github.com/alwindoss/morse

Sample Usage

package main
import (
"fmt""strings""github.com/alwindoss/morse"
)
funcmain() {
h:=morse.NewHacker()
morseCode, err:=h.Encode(strings.NewReader("Convert this to Morse"))
iferr!=nil {
return
}
// Morse Code is: -.-. --- ...- . .-. - / - .... .. ... / - --- / -- --- .-. ... .fmt.Printf("Morse Code is: %s\n", string(morseCode))
}

Releases

Packages

Used by

Contributors

Languages