受python-prompt-toolkit启发,在Go中构建功能强大的交互式提示。-Golang开发

时间:2021-05-26 14:06:24
【文件属性】:
文件名称:受python-prompt-toolkit启发,在Go中构建功能强大的交互式提示。-Golang开发
文件大小:63KB
文件格式:ZIP
更新时间:2021-05-26 14:06:24
Golang Command Line go-prompt库,受python-prompt-toolkit启发,用于构建功能强大的交互式提示。 由于使用Golang编写,因此可以轻松构建命令行工具的多平台二进制文件。 package main import(“ fmt”“ github go-prompt一个库,用于构建受python-prompt-toolkit启发的强大的交互式提示,从而使使用Go构建跨平台命令行工具更加容易。 .com / c-bata / go-prompt“)func completer(d提示。文档)[] prompt.Suggest {s:= [] prompt.Suggest {{文本:”用户“,描述:”存储用户名和年龄“},{文本:”文章“,描述:”存储用户发布的文章文本“},{文本:”评论“,描述:”存储文本
【文件预览】:
go-prompt-master
----document_test.go(28KB)
----.gitignore(270B)
----go.mod(253B)
----output_vt100_test.go(1KB)
----emacs.go(3KB)
----key.go(2KB)
----key_string.go(1KB)
----input_posix.go(2KB)
----Makefile(1KB)
----output_posix.go(2KB)
----document.go(13KB)
----emacs_test.go(741B)
----output_windows.go(1KB)
----LICENSE(1KB)
----buffer.go(6KB)
----shortcut.go(1KB)
----CHANGELOG.md(3KB)
----_example()
--------exec-command()
--------simple-echo()
--------live-prefix()
--------README.md(1KB)
--------http-prompt()
--------build.sh(469B)
----go.sum(2KB)
----input_test.go(533B)
----input.go(7KB)
----filter_test.go(3KB)
----key_bind_func.go(1KB)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----output.go(4KB)
----filter.go(2KB)
----README.md(6KB)
----completion_test.go(7KB)
----completer()
--------file.go(2KB)
----key_bind.go(1KB)
----option.go(9KB)
----signal_windows.go(757B)
----prompt.go(7KB)
----buffer_test.go(5KB)
----history_test.go(1KB)
----output_vt100.go(7KB)
----render_test.go(3KB)
----_tools()
--------vt100_debug()
--------sigwinch()
--------complete_file()
--------README.md(234B)
----completion.go(4KB)
----signal_posix.go(881B)
----input_windows.go(2KB)
----history.go(1KB)
----internal()
--------term()
--------debug()
--------bisect()
--------strings()
----render.go(8KB)

网友评论