morse

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Morse

Type Morse code!

Demo

demo

How to start inputing by cli

go run main.go

Settings

You can edit settings.

package main

import "github.com/maru44/morse/morse"

func main() {
    // set with args
    m1 := morse.NewMorse(morse.SinglePing("a"), morse.TriplePing("b"))

    // overwrite
    m2 := morse.NewMorse()
    m.SinglePing = "a"
    m.TriplePing = "b"

    // define by struct
    m3 := morse.Morse{
        SinglePing: "a",
        TriplePing: "b",
        // ...
    }
}

The default input settings is the below.

"j" > . (dot)
"k" > - (dash)   (You don't have to press it long.)
"l" > to quit it

0.4sec > space

You can use morse as package.

Core system is in here (https://github.com/maru44/morse/morse). You can use it as package.

go install github.com/maru44/morse@latest

Thanks

https://github.com/eiannone/keyboard

https://github.com/alwindoss/morse

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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