Type Morse code!
go run main.go
You can edit settings.
package main
import "github.com/maru44/morse/morse"
func main() {
// set with args
m1 := morse.NewMorse(morse.DitPing("a"), morse.DahPing("b"))
// overwrite
m2 := morse.NewMorse()
m2.DitPing = "a"
m2.DahPing = "b"
// define by struct
m3 := morse.Morse{
DitPing: "a",
DahPing: "b",
// ...
}
}
The default input settings is the below.
"j" > . (dit)
"k" > - (dah) (You don't have to press it long.)
"l" > to quit it
0.4sec > one time unit
Core system is in here (https://github.com/maru44/morse/morse). You can use it as package.
go install github.com/maru44/morse@latest