Awesome Go

morse

CategoryMiscellaneous
SubcategoryUncategorized
Stars0

Library to convert to and from morse code

About morse

morse

Go Report Card CircleCI codecov Go Reference License

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"
)

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

Frequently Asked Questions

What is morse?

morse is a Miscellaneous library for the Go programming language. Library to convert to and from morse code

How do I install morse?

Install morse with the Go module system using `go get alwindoss/morse`. Check the repository for the current installation instructions.

What category does morse belong to?

morse is listed under Miscellaneous, specifically Uncategorized.

← Back to Uncategorized