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