go-txtfile-viewer

module
v0.0.0-...-63502d8 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT

README

go-txtfile-viewer

一个简单的文本查看工具,通过浏览器查看本地文档,支持 txt 文件和 markdown 文件。

Get Started

使用方法:

# build
$ cd cmd/go-txtfile-viewer
$ go build -ldflags="-s -w"
# usage
$ ./go-txtfile-viewer -h
Usage of ./go-txtfile-viewer:
  -d string
    	The dir where to serve (default ".")
  -p int
    	The listen port (default 8080)

具体运行效果如下:

通过 ./go-txtfile-viewer/main.go -d t 运行。

目录页:

dir

txt 文件页:

txt

markdown 文件页:

markdown

License

MIT license

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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