INNER CODE UNIT · Go

quit

asciimoo/wuzz · commands.go:227

func quit(g *gocui.Gui, v *gocui.View) error {
	return gocui.ErrQuit
}

func openEditor(g *gocui.Gui, v *gocui.View, editor string) error {
	file, err := ioutil.TempFile(os.TempDir(), "wuzz-")
	if err != nil {
		return nil
	}
	defer os.Remove(file.Name())

	val := getViewValue(g, v.Name())
	if val != "" {
		fmt.Fprint(file, val)
	}
	file.Close()

	info, err := os.Stat(file.Name())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…