github.com/grantbow/fit@v0.7.1-0.20220916164603-1f7c88ac81e6/fitapp/editor.go (about) 1 //go:build !plan9 2 // +build !plan9 3 4 package fitapp 5 6 import ( 7 "os" 8 ) 9 10 func getEditor() string { 11 editor := os.Getenv("EDITOR") 12 13 if editor != "" { 14 return editor 15 } 16 return "vim" 17 18 }