diff options
| author | Tong Sun <[email protected]> | 2020-07-26 00:15:49 -0400 |
|---|---|---|
| committer | Tong Sun <[email protected]> | 2020-07-26 00:15:49 -0400 |
| commit | fffbe38292c5d0a68f8e472e27a3fffd089b2ed6 (patch) | |
| tree | f7b7dbb650749ad9caffd845e433d6aa24b45a5a /prop_html2md.go | |
| parent | - [+] add the initial wireframe (diff) | |
| download | html2md-fffbe38292c5d0a68f8e472e27a3fffd089b2ed6.tar.xz html2md-fffbe38292c5d0a68f8e472e27a3fffd089b2ed6.zip | |
- [+] refactor func html2md() to prop_html2md.go
Diffstat (limited to 'prop_html2md.go')
| -rw-r--r-- | prop_html2md.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/prop_html2md.go b/prop_html2md.go new file mode 100644 index 0000000..838122e --- /dev/null +++ b/prop_html2md.go @@ -0,0 +1,24 @@ +//////////////////////////////////////////////////////////////////////////// +// Program: html2md +// Purpose: HTML to Markdown +// Authors: Tong Sun (c) 2020, All rights reserved +//////////////////////////////////////////////////////////////////////////// + +package main + +import ( + "fmt" + + "github.com/mkideal/cli" +) + +//========================================================================== +// root handler + +func html2md(ctx *cli.Context) error { + ctx.JSON(ctx.RootArgv()) + ctx.JSON(ctx.Argv()) + fmt.Println() + + return nil +} |