morse

package
v0.0.0-...-993cae5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 4 Imported by: 0

README

The intention here is to create a module / subcommand that can convert to and from morse via https://github.com/alwindoss/morse

Documentation

Index

Constants

View Source
const (
	A2MCmd    = `tomorse`
	A2MDesc   = `Convert ASCII input to morse`
	A2MParams = `<input>`
	M2ACmd    = `frommorse`
	M2ADesc   = `Convert morse input to ASCII`
	M2AParams = `<input>`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

func NewBot

func NewBot() *Bot

func (*Bot) FromMorse

func (b *Bot) FromMorse(cmd *bot.Cmd) (string, error)

func (*Bot) ToMorse

func (b *Bot) ToMorse(cmd *bot.Cmd) (string, error)

Jump to

Keyboard shortcuts

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