Golang API for text-base file dialog
Demo
Multi-platform (Win10 and Xubuntu18.04 is checked)
install
go get github.com/akatsuki-py/tfd
This package has only one API.
extensions := []string{"md", "txt"} // select *.md or *.txt file
hiddenDisplay := false // if hidden-file displays
path, err := tfd.CreateSelectDialog(extensions, hiddenDisplay) // e.g. /usr/local/go/README.md
You can use the Arrow Keys to navigate, Enter to select a file or enter directory ,Esc to quit.