Go Editor Package editor provides a utility to read from $EDITOR. For example: $ EDITOR=vim go run example/main.go $ EDITOR='code -w' go run example/main.go