github.com/driusan/bug@v0.3.2-0.20190306121946-d7f4e7f33fea/bugapp/editor_plan9.go (about) 1 package bugapp 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 } 16