mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 09:40:23 +00:00
Added motd parser
This commit is contained in:
@@ -22,6 +22,8 @@ var parsers map[string]Parser = map[string]Parser{
|
||||
"terminal": {"terminal", "", "", "\n", nil},
|
||||
// Parser for HTML code
|
||||
"html": {"html", "<code>", "</code>", "<br>", map[string]string{" ": " "}},
|
||||
// Parser for motd file
|
||||
"motd": {"motd", "#!/bin/sh\ncat << 'EOF'\n", "EOF", "\n", nil},
|
||||
}
|
||||
|
||||
// GetParser returns a parser by its key
|
||||
|
||||
Reference in New Issue
Block a user